From b1755fe736898400c88fa030a9667b576fa7e88c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 7 Nov 2006 15:33:40 +0000 Subject: * libc/include/sys/unistd.h (_SC_STREAM_MAX): Define on Cygwin. (_PC_FILESIZEBITS): Add definition. (_PC_2_SYMLINKS): Ditto. (_PC_SYMLINK_MAX): Ditto. --- newlib/libc/include/sys/unistd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'newlib/libc/include/sys') diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index a670dd735..9b0e8e6b9 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -303,8 +303,10 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2)); #define _SC_LOGIN_NAME_MAX 52 #define _SC_THREAD_DESTRUCTOR_ITERATIONS 53 -#if !defined(__CYGWIN__) && !defined(__rtems__) +#if !defined(__rtems__) #define _SC_STREAM_MAX 100 +#endif +#if !defined(__CYGWIN__) && !defined(__rtems__) #define _SC_PRIORITY_SCHEDULING 101 #endif @@ -320,6 +322,9 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2)); # define _PC_ASYNC_IO 9 # define _PC_PRIO_IO 10 # define _PC_SYNC_IO 11 +# define _PC_FILESIZEBITS 12 +# define _PC_2_SYMLINKS 13 +# define _PC_SYMLINK_MAX 14 #ifdef __CYGWIN__ /* Ask for POSIX permission bits support. */ # define _PC_POSIX_PERMISSIONS 90 -- cgit v1.2.3