From: wilson Date: Thu, 6 Jul 2000 19:05:24 +0000 (+0000) Subject: Fix IA-64 linux run-time failure, due to lack of ptsname declaration. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cd50e1ccac4b1fc3f092972b952e7fa0f4976f88;p=pf3gnuchains%2Fsourceware.git Fix IA-64 linux run-time failure, due to lack of ptsname declaration. * pty_termios.c: Include expect_cf.h before stdio.h. --- diff --git a/expect/ChangeLog b/expect/ChangeLog index 435443fa97..39864fedb6 100644 --- a/expect/ChangeLog +++ b/expect/ChangeLog @@ -1,3 +1,7 @@ +2000-07-06 Jim Wilson + + * pty_termios.c: Include expect_cf.h before stdio.h. + 2000-05-15 Tom Tromey * expect_cf.h.in (_XOPEN_SOURCE): Added. diff --git a/expect/pty_termios.c b/expect/pty_termios.c index 113d9cfbc9..15bf49cbf4 100644 --- a/expect/pty_termios.c +++ b/expect/pty_termios.c @@ -7,6 +7,9 @@ would appreciate credit if you use this file or parts of it. */ +/* Must be first, so that _XOPEN_SOURCE works. */ +#include "expect_cf.h" + #include #include @@ -14,8 +17,6 @@ would appreciate credit if you use this file or parts of it. #define SIGCHLD SIGCLD #endif -#include "expect_cf.h" - /* The following functions are linked from the Tcl library. They don't cause anything else in the library to be dragged in, so it