aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/netbsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386/netbsd.h')
-rw-r--r--gcc/config/i386/netbsd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/i386/netbsd.h b/gcc/config/i386/netbsd.h
index 765e6793d08..400cb0f432f 100644
--- a/gcc/config/i386/netbsd.h
+++ b/gcc/config/i386/netbsd.h
@@ -8,6 +8,10 @@
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "-Dunix -D__NetBSD__ \
-Asystem=unix -Asystem=bsd -Asystem=NetBSD"
+
+#undef CPP_SPEC
+#define CPP_SPEC "%(cpp_cpu) %{posix:-D_POSIX_SOURCE}"
+
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"