OSDN Git Service

2000-11-20 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Tue, 21 Nov 2000 23:57:24 +0000 (23:57 +0000)
committerjjohnstn <jjohnstn>
Tue, 21 Nov 2000 23:57:24 +0000 (23:57 +0000)
        * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
        * libc/include/dirent.h: Added definition of MAXNAMLEN if
        not defined by sys/dirent.h.
        * libc/posix/execvp.c: Added include of dirent.h to get
        MAXNAMLEN value which used to be in unistd.h.

newlib/ChangeLog
newlib/libc/include/dirent.h
newlib/libc/include/sys/unistd.h
newlib/libc/posix/execvp.c

index b736cfc..dd238b0 100644 (file)
@@ -1,3 +1,11 @@
+2000-11-20  Jeff Johnston  <jjohnstn@redhat.com>
+
+       * libc/include/sys/unistd.h: Removed definition of MAXNAMLEN.
+       * libc/include/dirent.h: Added definition of MAXNAMLEN if
+       not defined by sys/dirent.h.
+       * libc/posix/execvp.c: Added include of dirent.h to get
+       MAXNAMLEN value which used to be in unistd.h.
+
 Mon Nov  6 12:56:00 2000  Corinna Vinschen <vinschen@cygnus.com>
 
        * libc/include/sys/types.h: Change type of i to `size_t' in
index eaa4c19..9e33a0d 100644 (file)
@@ -2,6 +2,11 @@
 extern "C" {
 #endif
 #include <sys/dirent.h>
+
+#if !defined(MAXNAMLEN) && !defined(_POSIX_SOURCE)
+#define MAXNAMLEN 1024
+#endif
+
 #ifdef __cplusplus
 }
 #endif
index 87cf610..fa103a9 100644 (file)
@@ -176,10 +176,6 @@ long _EXFUN(sysconf, (int __name));
 # define       _PC_PRIO_IO            10
 # define       _PC_SYNC_IO            11
 
-# ifndef       _POSIX_SOURCE
-#  define      MAXNAMLEN       1024
-# endif                /* _POSIX_SOURCE */
-
 /* FIXME: This is temporary until winsup gets sorted out.  */
 #ifdef __CYGWIN__
 #define MAXPATHLEN (260 - 1 /* NUL */)
index 1b30f07..1f58b8d 100644 (file)
@@ -6,6 +6,7 @@
 #include <_ansi.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <dirent.h>
 #include <string.h>
 #include <errno.h>
 #include <ctype.h>