Fix build time problem with MingGW hosts, which do not have a strnlen() function.

2014-03-13  Meador Inge  <meadori@codesourcery.com>

	 * configure.in: Add strnlen to AC_CHECK_DECLS.
	 * config.in: Regenerate.
         * configure: Regenerate.
	 * sysdep.h (strnlen): Add prototype.

         * dwarf.c (strnlen): Move prototype ...
	 * sysdep.h (strnlen): ... to here.
This commit is contained in:
Nick Clifton
2014-03-14 11:21:00 +00:00
parent dc6ae99692
commit 5a026fc9a2
8 changed files with 36 additions and 4 deletions

View File

@ -29,10 +29,6 @@
#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;