aboutsummaryrefslogtreecommitdiff
path: root/ld/sysdep.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-05-11 14:25:30 +0000
committerNick Clifton <nickc@redhat.com>2012-05-11 14:25:30 +0000
commit208a4923edd990535a9bbf73bf39a8609771aec3 (patch)
tree03814f8704619ced31086f6b9e5bd345889fab33 /ld/sysdep.h
parentbde24c0a34fd79fb9ee6c7a355a46917cd866d26 (diff)
downloadgdb-208a4923edd990535a9bbf73bf39a8609771aec3.zip
gdb-208a4923edd990535a9bbf73bf39a8609771aec3.tar.gz
gdb-208a4923edd990535a9bbf73bf39a8609771aec3.tar.bz2
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 b7d5b88..eadee88 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>