summaryrefslogtreecommitdiff
path: root/sim/arm/config.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-24 05:38:34 +0000
committerMike Frysinger <vapier@gentoo.org>2012-03-24 05:38:34 +0000
commit68c4998cf419703473c5985f99aee1715c92d5e4 (patch)
treeb9b094f56f561afd07a51eb8c3953e11da3dd73f /sim/arm/config.in
parent5e92d838c0cd75ff9755f144aa84a1fb7d256e38 (diff)
downloadgdb-68c4998cf419703473c5985f99aee1715c92d5e4.tar.gz
[PATCH] sim: make sure to include strsignal prototype
Before POSIX standardized strsignal(), old systems would hide the prototype unless the normal extension defines were enabled. So use the AC_USE_SYSTEM_EXTENSIONS helper for that. Then make sure we include string.h ourselves in nrun.c rather than relying on implicit includes via other sim headers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/arm/config.in')
-rw-r--r--sim/arm/config.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/sim/arm/config.in b/sim/arm/config.in
index f29d045645e..76a912604f8 100644
--- a/sim/arm/config.in
+++ b/sim/arm/config.in
@@ -102,3 +102,35 @@
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
+
+/* Enable extensions on AIX 3, Interix. */
+#ifndef _ALL_SOURCE
+# undef _ALL_SOURCE
+#endif
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
+/* Enable threading extensions on Solaris. */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# undef _POSIX_PTHREAD_SEMANTICS
+#endif
+/* Enable extensions on HP NonStop. */
+#ifndef _TANDEM_SOURCE
+# undef _TANDEM_SOURCE
+#endif
+/* Enable general extensions on Solaris. */
+#ifndef __EXTENSIONS__
+# undef __EXTENSIONS__
+#endif
+
+
+/* Define to 1 if on MINIX. */
+#undef _MINIX
+
+/* Define to 2 if the system does not provide POSIX.1 features except with
+ this defined. */
+#undef _POSIX_1_SOURCE
+
+/* Define to 1 if you need to in order for `stat' and other things to work. */
+#undef _POSIX_SOURCE