summaryrefslogtreecommitdiff
path: root/binutils/sysdep.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-05-11 14:25:25 +0000
committerNick Clifton <nickc@redhat.com>2012-05-11 14:25:25 +0000
commitc8f4db3137c73c932e34c919b1797e8d88b8d09b (patch)
treebbc3d4ad5a60929d211c457fbecc1ccd6e349419 /binutils/sysdep.h
parent39bcaf6f7f1dccbd4ddc8e9168aa21bb2d286ce9 (diff)
downloadbinutils-redhat-c8f4db3137c73c932e34c919b1797e8d88b8d09b.tar.gz
PR binutils/14028
* configure.in: Invoke ACX_HEADER_STRING. * configure: Regenerate. * config.in: Regenerate. * sysdep.h: If STRINGS_WITH_STRING is defined then include both string.h and strings.h.
Diffstat (limited to 'binutils/sysdep.h')
-rw-r--r--binutils/sysdep.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/sysdep.h b/binutils/sysdep.h
index 0e1d502fcd..5164e791c5 100644
--- a/binutils/sysdep.h
+++ b/binutils/sysdep.h
@@ -46,6 +46,10 @@ extern int errno;
#include <unistd.h>
#endif
+#ifdef STRING_WITH_STRINGS
+#include <string.h>
+#include <strings.h>
+#else
#ifdef HAVE_STRING_H
#include <string.h>
#else
@@ -56,6 +60,7 @@ extern char *strchr ();
extern char *strrchr ();
#endif
#endif
+#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>