diff options
author | Kamil Rytarowski <krytarowski@users.noreply.github.com> | 2016-08-09 03:00:44 +0300 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2016-08-09 03:00:44 +0300 |
commit | 3e6701d4b208d1718fa96d6c58691ca9e4cb6797 (patch) | |
tree | 2e3f5f199bd624f1f703f2342c803c343ea579ce /support | |
parent | 615f644ca1db2f204382455fe596c7aefd19579d (diff) |
Define _NETBSD_SOURCE for mincore(2) (#3380)
Diffstat (limited to 'support')
-rw-r--r-- | support/sys-mman.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/support/sys-mman.c b/support/sys-mman.c index 15e125621d2..1dd61bc372b 100644 --- a/support/sys-mman.c +++ b/support/sys-mman.c @@ -22,6 +22,11 @@ #define __BSD_VISIBLE 1 #endif +#ifdef __NetBSD__ +/* For mincore () */ +#define _NETBSD_SOURCE +#endif + #include <sys/types.h> #include <sys/mman.h> #include <errno.h> |