diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-23 21:24:26 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-23 21:29:43 -0400 |
commit | ad62991a5b1641acc8c7daea799855a51f5947e5 (patch) | |
tree | 9bb523f84b0804f73f4c56ef4ff021bc02d15ac5 | |
parent | 7adc66259e25469d6cbfcebe5b78ef39fb5d431b (diff) | |
download | lighttpd-git-ad62991a5b1641acc8c7daea799855a51f5947e5.tar.gz |
[mod_webdav] define _NETBSD_SOURCE on NetBSD
NetBSD dirent.h improperly hides fdopendir() (POSIX.1-2008) declaration
which should be visible w/ _XOPEN_SOURCE 700 or _POSIX_C_SOURCE 200809L
-rw-r--r-- | src/mod_webdav.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mod_webdav.c b/src/mod_webdav.c index d8774686..98c09664 100644 --- a/src/mod_webdav.c +++ b/src/mod_webdav.c @@ -159,6 +159,11 @@ #if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE-0 < 700 #undef _XOPEN_SOURCE #define _XOPEN_SOURCE 700 +/* NetBSD dirent.h improperly hides fdopendir() (POSIX.1-2008) declaration + * which should be visible with _XOPEN_SOURCE 700 or _POSIX_C_SOURCE 200809L */ +#ifdef __NetBSD__ +#define _NETBSD_SOURCE +#endif #endif /* DT_UNKNOWN DTTOIF() */ #ifndef _GNU_SOURCE |