diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-24 05:38:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-24 05:38:43 +0000 |
commit | 2232061b1ccf68bb1e46c95cab6f531831d72aa5 (patch) | |
tree | f53b4af16dd91562b986a3daebb445099c2c88ba /sim/common/nrun.c | |
parent | ad03ad841debc41c80b47d83c2496d939838a081 (diff) | |
download | binutils-2232061b1ccf68bb1e46c95cab6f531831d72aa5.zip binutils-2232061b1ccf68bb1e46c95cab6f531831d72aa5.tar.gz binutils-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/common/nrun.c')
-rw-r--r-- | sim/common/nrun.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sim/common/nrun.c b/sim/common/nrun.c index a50ae06..8e92879 100644 --- a/sim/common/nrun.c +++ b/sim/common/nrun.c @@ -15,6 +15,16 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <signal.h> + +/* For strsignal. */ +#ifdef HAVE_STRING_H +#include <string.h> +#else +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif +#endif + #include "sim-main.h" #include "bfd.h" |