mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
5478bf376f
* 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.
13 lines
174 B
C
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
|