aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/config.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-03-24 05:38:43 +0000
committerMike Frysinger <vapier@gentoo.org>2012-03-24 05:38:43 +0000
commit2232061b1ccf68bb1e46c95cab6f531831d72aa5 (patch)
treef53b4af16dd91562b986a3daebb445099c2c88ba /sim/rx/config.in
parentad03ad841debc41c80b47d83c2496d939838a081 (diff)
downloadgdb-2232061b1ccf68bb1e46c95cab6f531831d72aa5.zip
gdb-2232061b1ccf68bb1e46c95cab6f531831d72aa5.tar.gz
gdb-2232061b1ccf68bb1e46c95cab6f531831d72aa5.tar.bz2
[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/rx/config.in')
-rw-r--r--sim/rx/config.in44
1 files changed, 38 insertions, 6 deletions
diff --git a/sim/rx/config.in b/sim/rx/config.in
index 7263de3..b640523 100644
--- a/sim/rx/config.in
+++ b/sim/rx/config.in
@@ -1,4 +1,10 @@
-/* config.in. Generated from configure.in by autoheader. */
+/* config.in. Generated from configure.ac by autoheader. */
+
+/* --enable-cycle-accurate */
+#undef CYCLE_ACCURATE
+
+/* --enable-cycle-stats */
+#undef CYCLE_STATS
/* Define to 1 if translation of program messages to the user's native
language is requested. */
@@ -106,8 +112,34 @@
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
-/* --enable-cycle-accurate */
-#undef CYCLE_ACCURATE
-
-/* --enable-cycle-stats */
-#undef CYCLE_STATS
+/* 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