summaryrefslogtreecommitdiffstats
path: root/sim/common/acinclude.m4
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/common/acinclude.m4
parentad03ad841debc41c80b47d83c2496d939838a081 (diff)
downloadppe42-binutils-2232061b1ccf68bb1e46c95cab6f531831d72aa5.tar.gz
ppe42-binutils-2232061b1ccf68bb1e46c95cab6f531831d72aa5.zip
[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/common/acinclude.m4')
-rw-r--r--sim/common/acinclude.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4
index 2833d8e9e5..ef4277503f 100644
--- a/sim/common/acinclude.m4
+++ b/sim/common/acinclude.m4
@@ -29,6 +29,7 @@ AC_REQUIRE([AC_PROG_CC])
# autoconf.info says this should be called right after AC_INIT.
AC_CONFIG_HEADER(ifelse([$1],,config.h,[$1]):config.in)
AC_CANONICAL_SYSTEM
+AC_USE_SYSTEM_EXTENSIONS
AC_ARG_PROGRAM
AC_PROG_INSTALL
OpenPOWER on IntegriCloud