diff options
Diffstat (limited to 'libio/filedoalloc.c')
-rw-r--r-- | libio/filedoalloc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c index 0ebb75d9c5..f71656478c 100644 --- a/libio/filedoalloc.c +++ b/libio/filedoalloc.c @@ -41,13 +41,18 @@ the executable file might be covered by the GNU General Public License. */ /* Modified for GNU iostream by Per Bothner 1991, 1992. */ -#define _POSIX_SOURCE +#ifndef _POSIX_SOURCE +# define _POSIX_SOURCE +#endif #include "libioP.h" #include <sys/types.h> #include <sys/stat.h> #ifdef __STDC__ #include <stdlib.h> #endif +#ifdef _LIBC +# include <unistd.h> +#endif /* * Allocate a file buffer, or switch to unbuffered I/O. |