diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-03-15 00:17:38 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-03-18 05:08:51 +0300 |
commit | d2937299fad043fa91cdf7f56eef914558be4077 (patch) | |
tree | 52e6ad5760f6b7ef66d48e9ae60237639f7a01b0 /newlib | |
parent | 575608b2021227f51beaf286cf71a27f4616cdcf (diff) |
Feature test macros overhaul: dirent.h
MAXNAMLEN is a BSDism.
Use the proper internal macros instead of !_POSIX_SOURCE. telldir and
seekdir are XSI, scandir and alphasort are POSIX.1-2008, and scandirat
is GNU.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/dirent.h | 3 |
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 |