aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-04-05 04:13:41 +0000
committerAlan Modra <amodra@gmail.com>2013-04-05 04:13:41 +0000
commit952781e82cc7dd01165447f137ea88f83f2c6bdf (patch)
tree56a421bc7ecddd869f9cc022da62038dc5a2e5fd /binutils/dwarf.c
parent4b7654eed702241bfa2c3714a9f1a42acfba5c4f (diff)
downloadgdb-952781e82cc7dd01165447f137ea88f83f2c6bdf.zip
gdb-952781e82cc7dd01165447f137ea88f83f2c6bdf.tar.gz
gdb-952781e82cc7dd01165447f137ea88f83f2c6bdf.tar.bz2
PR binutils/15324
* configure.in: Add strnlen to AC_CHECK_DECLS, sort. * dwarf.c (strnlen): Provide fallback decl. * config.in: Regnerate. * configure: Regenerate.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index a3a5949..4f5aa2b 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -29,6 +29,10 @@
#include "dwarf.h"
#include "gdb/gdb-index.h"
+#if !HAVE_DECL_STRNLEN
+size_t strnlen (const char *, size_t);
+#endif
+
static const char *regname (unsigned int regno, int row);
static int have_frame_base;