* dwarf.c: Correct test of HAVE_DECL_STRNLEN.
authorIan Lance Taylor <iant@google.com>
Tue, 18 Sep 2012 16:50:29 +0000 (16:50 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 18 Sep 2012 16:50:29 +0000 (16:50 +0000)
From-SVN: r191437

libbacktrace/ChangeLog
libbacktrace/dwarf.c

index 0cf79cf4a40d63356eee9c972ec5785ecba7aae2..5e89df42ce0c095c2a4b5c9a3a42a674321ac632 100644 (file)
@@ -1,3 +1,7 @@
+2012-09-18  Ian Lance Taylor  <iant@google.com>
+
+       * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
+
 2012-09-18  Ian Lance Taylor  <iant@google.com>
 
        * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
index 34861fce484a641cc75bab748dc08c3d77b71805..43fb931da1686fae61d2659262ae27793aad9726 100644 (file)
@@ -44,7 +44,7 @@ POSSIBILITY OF SUCH DAMAGE.  */
 #include "backtrace.h"
 #include "internal.h"
 
-#ifndef HAVE_DECL_STRNLEN
+#if !defined(HAVE_DECL_STRNLEN) || !HAVE_DECL_STRNLEN
 /* The function is defined in libiberty if needed.  */
 extern size_t strnlen (const char *, size_t);
 #endif