4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 11:00:04 +08:00
Jeff Johnston 5478bf376f 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.
2000-11-21 23:57:25 +00:00

13 lines
174 B
C

#ifdef __cplusplus
extern "C" {
#endif
#include <sys/dirent.h>
#if !defined(MAXNAMLEN) && !defined(_POSIX_SOURCE)
#define MAXNAMLEN 1024
#endif
#ifdef __cplusplus
}
#endif