summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 8413e1d9d..dcd0d4a6a 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -24,6 +24,9 @@
#elif defined(__NDS__)
#include <nds/jtypes.h>
#define TROUBLED_INTS
+#elif defined(__NetBSD__)
+ #include <unistd.h>
+ #define _GNU_SOURCE
#endif
/* It seems that we need to include stdint.h before anything else