Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Rytarowski <krytarowski@users.noreply.github.com>2016-08-09 03:00:44 +0300
committerZoltan Varga <vargaz@gmail.com>2016-08-09 03:00:44 +0300
commit3e6701d4b208d1718fa96d6c58691ca9e4cb6797 (patch)
tree2e3f5f199bd624f1f703f2342c803c343ea579ce /support
parent615f644ca1db2f204382455fe596c7aefd19579d (diff)
Define _NETBSD_SOURCE for mincore(2) (#3380)
Diffstat (limited to 'support')
-rw-r--r--support/sys-mman.c5
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>