Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/dirent.h')
-rw-r--r--newlib/libc/include/dirent.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/include/dirent.h b/newlib/libc/include/dirent.h
index eaa4c190d..9e33a0dcb 100644
--- a/newlib/libc/include/dirent.h
+++ b/newlib/libc/include/dirent.h
@@ -2,6 +2,11 @@
extern "C" {
#endif
#include <sys/dirent.h>
+
+#if !defined(MAXNAMLEN) && !defined(_POSIX_SOURCE)
+#define MAXNAMLEN 1024
+#endif
+
#ifdef __cplusplus
}
#endif