summaryrefslogtreecommitdiff
path: root/ld/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 /ld/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 'ld/sysdep.h')
-rw-r--r--ld/sysdep.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ld/sysdep.h b/ld/sysdep.h
index b7d5b88a85..eadee88217 100644
--- a/ld/sysdep.h
+++ b/ld/sysdep.h
@@ -1,5 +1,5 @@
/* sysdep.h -- handle host dependencies for the GNU linker
- Copyright 1995, 1996, 1997, 1999, 2002, 2003, 2005, 2007
+ Copyright 1995, 1996, 1997, 1999, 2002, 2003, 2005, 2007, 2012
Free Software Foundation, Inc.
This file is part of the GNU Binutils.
@@ -29,6 +29,10 @@
#include <sys/stat.h>
#include <stdarg.h>
+#ifdef STRING_WITH_STRINGS
+#include <string.h>
+#include <strings.h>
+#else
#ifdef HAVE_STRING_H
#include <string.h>
#else
@@ -39,6 +43,7 @@ extern char *strchr ();
extern char *strrchr ();
#endif
#endif
+#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>