summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/dirent.h')
-rw-r--r--newlib/libc/include/dirent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/include/dirent.h b/newlib/libc/include/dirent.h
index 6fefc03cb..6135b9f6e 100644
--- a/newlib/libc/include/dirent.h
+++ b/newlib/libc/include/dirent.h
@@ -3,9 +3,10 @@
#ifdef __cplusplus
extern "C" {
#endif
+#include <sys/cdefs.h>
#include <sys/dirent.h>
-#if !defined(MAXNAMLEN) && !defined(_POSIX_SOURCE)
+#if !defined(MAXNAMLEN) && __BSD_VISIBLE
#define MAXNAMLEN 1024
#endif