This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix PR15324, MacOs X strnlen decl missing


Applied.

	PR binutils/15324
	* configure.in: Add strnlen to AC_CHECK_DECLS, sort.
	* dwarf.c (strnlen): Provide fallback decl.
	* config.in: Regnerate.
	* configure: Regenerate.

Index: binutils/configure.in
===================================================================
RCS file: /cvs/src/src/binutils/configure.in,v
retrieving revision 1.117
diff -u -p -r1.117 configure.in
--- binutils/configure.in	5 Mar 2013 11:52:12 -0000	1.117
+++ binutils/configure.in	30 Mar 2013 11:55:51 -0000
@@ -185,8 +185,8 @@ if test $bu_cv_header_utime_h = yes; the
   AC_DEFINE(HAVE_GOOD_UTIME_H, 1, [Does <utime.h> define struct utimbuf?])
 fi
 
-AC_CHECK_DECLS([fprintf, stpcpy, strstr, sbrk, getenv, environ, getc_unlocked,
-		snprintf, vsnprintf])
+AC_CHECK_DECLS([environ, fprintf, getc_unlocked, getenv,
+		sbrk, snprintf, stpcpy, strnlen, strstr, vsnprintf])
 
 # Link in zlib if we can.  This allows us to read compressed debug
 # sections.  This is used only by readelf.c (objdump uses bfd for
Index: binutils/dwarf.c
===================================================================
RCS file: /cvs/src/src/binutils/dwarf.c,v
retrieving revision 1.129
diff -u -p -r1.129 dwarf.c
--- binutils/dwarf.c	29 Mar 2013 20:42:48 -0000	1.129
+++ binutils/dwarf.c	30 Mar 2013 11:55:51 -0000
@@ -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;

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]