diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 1999-04-12 18:27:53 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-04-12 12:27:53 -0600 |
commit | edcc5d3c96b30e46c15f37295646ce68cf0f563c (patch) | |
tree | 039927823f7cd3331122c26c7e874c1d1329a640 /libio | |
parent | 3c59b7abd3bfc2cdc7ce9db9d51ef1f9b0258510 (diff) | |
download | gcc-edcc5d3c96b30e46c15f37295646ce68cf0f563c.tar.gz |
filedoalloc.c (_POSIX_SOURCE): Remove definition.
* filedoalloc.c (_POSIX_SOURCE): Remove definition.
* fileops.c (_POSIX_SOURCE): Likewise.
* iopopen.c (_POSIX_SOURCE): Likewise.
* procbuf.cc (_POSIX_SOURCE): Likewise.
* libioP.h (_POSIX_SOURCE): And define it here.
* stdiostream.cc: Include libioP.h before others.
From-SVN: r26380
Diffstat (limited to 'libio')
-rw-r--r-- | libio/ChangeLog | 9 | ||||
-rw-r--r-- | libio/filedoalloc.c | 3 | ||||
-rw-r--r-- | libio/fileops.c | 3 | ||||
-rw-r--r-- | libio/iopopen.c | 3 | ||||
-rw-r--r-- | libio/libioP.h | 4 | ||||
-rw-r--r-- | libio/procbuf.cc | 1 | ||||
-rw-r--r-- | libio/stdiostream.cc | 2 |
7 files changed, 14 insertions, 11 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog index b05db013c2f..798a5d3c890 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,12 @@ +Mon Apr 12 19:22:44 1999 Mumit Khan <khan@xraylith.wisc.edu> + + * filedoalloc.c (_POSIX_SOURCE): Remove definition. + * fileops.c (_POSIX_SOURCE): Likewise. + * iopopen.c (_POSIX_SOURCE): Likewise. + * procbuf.cc (_POSIX_SOURCE): Likewise. + * libioP.h (_POSIX_SOURCE): And define it here. + * stdiostream.cc: Include libioP.h before others. + Fri Apr 2 15:11:58 1999 H.J. Lu (hjl@gnu.org) * libio/configure.in (gxx_include_dir): Handle it. diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c index 5c62280c14b..52b554400c2 100644 --- a/libio/filedoalloc.c +++ b/libio/filedoalloc.c @@ -42,9 +42,6 @@ /* Modified for GNU iostream by Per Bothner 1991, 1992. */ -#ifndef _POSIX_SOURCE -# define _POSIX_SOURCE -#endif #include "libioP.h" #include <sys/types.h> #include <sys/stat.h> diff --git a/libio/fileops.c b/libio/fileops.c index c4406340704..54e13d3f18f 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -25,9 +25,6 @@ General Public License. */ -#ifndef _POSIX_SOURCE -# define _POSIX_SOURCE -#endif #include "libioP.h" #include <fcntl.h> #include <sys/types.h> diff --git a/libio/iopopen.c b/libio/iopopen.c index 59d4fc3f0ed..58f97495c11 100644 --- a/libio/iopopen.c +++ b/libio/iopopen.c @@ -24,9 +24,6 @@ other reasons why the executable file might be covered by the GNU General Public License. */ -#ifndef _POSIX_SOURCE -# define _POSIX_SOURCE -#endif #include "libioP.h" #if _IO_HAVE_SYS_WAIT #include <signal.h> diff --git a/libio/libioP.h b/libio/libioP.h index d41c46619f0..36fa1e007de 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -23,6 +23,10 @@ other reasons why the executable file might be covered by the GNU General Public License. */ +#ifndef _POSIX_SOURCE +# define _POSIX_SOURCE +#endif + #include <errno.h> #ifndef __set_errno # define __set_errno(Val) errno = (Val) diff --git a/libio/procbuf.cc b/libio/procbuf.cc index 1c79ce4ce0f..eb6d50e7797 100644 --- a/libio/procbuf.cc +++ b/libio/procbuf.cc @@ -28,7 +28,6 @@ the executable file might be covered by the GNU General Public License. */ #pragma implementation #endif -#define _POSIX_SOURCE #include "libioP.h" #include "procbuf.h" diff --git a/libio/stdiostream.cc b/libio/stdiostream.cc index bc9bef08ab6..ee0907b209f 100644 --- a/libio/stdiostream.cc +++ b/libio/stdiostream.cc @@ -28,8 +28,8 @@ the executable file might be covered by the GNU General Public License. */ #pragma implementation #endif -#include <stdiostream.h> #include "libioP.h" +#include <stdiostream.h> // A stdiobuf is "tied" to a FILE object (as used by the stdio package). // Thus a stdiobuf is always synchronized with the corresponding FILE, |