Browse Source

[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
master
Glenn Strauss 3 months ago
parent
commit
ad62991a5b
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/mod_webdav.c

+ 5
- 0
src/mod_webdav.c View File

@ -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


Loading…
Cancel
Save