aboutsummaryrefslogtreecommitdiff
path: root/opcodes/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 /opcodes/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 'opcodes/sysdep.h')
-rw-r--r--opcodes/sysdep.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/sysdep.h b/opcodes/sysdep.h
index 2ca3935..91c53ca 100644
--- a/opcodes/sysdep.h
+++ b/opcodes/sysdep.h
@@ -1,5 +1,5 @@
/* Random host-dependent support code.
- Copyright 1995, 1997, 2000, 2005, 2007 Free Software Foundation, Inc.
+ Copyright 1995, 1997, 2000, 2005, 2007, 2012 Free Software Foundation, Inc.
Written by Ken Raeburn.
This file is part of the GNU opcodes library.
@@ -35,6 +35,10 @@
#include <stdlib.h>
#endif
+#ifdef STRING_WITH_STRINGS
+#include <string.h>
+#include <strings.h>
+#else
#ifdef HAVE_STRING_H
#include <string.h>
#else
@@ -42,6 +46,7 @@
#include <strings.h>
#endif
#endif
+#endif
#if !HAVE_DECL_STPCPY
extern char *stpcpy (char *__dest, const char *__src);