aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/dwarf.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2012-09-18 16:50:29 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-09-18 16:50:29 +0000
commit30e15876ff318dceb4193593f5e083a430203880 (patch)
tree800c39c7096ae20c34e2614acd318b99de4161f6 /libbacktrace/dwarf.c
parent487e359c28d53819465c3d8b074b3c0318ac43a5 (diff)
downloadgcc-30e15876ff318dceb4193593f5e083a430203880.zip
gcc-30e15876ff318dceb4193593f5e083a430203880.tar.gz
gcc-30e15876ff318dceb4193593f5e083a430203880.tar.bz2
* dwarf.c: Correct test of HAVE_DECL_STRNLEN.
From-SVN: r191437
Diffstat (limited to 'libbacktrace/dwarf.c')
-rw-r--r--libbacktrace/dwarf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbacktrace/dwarf.c b/libbacktrace/dwarf.c
index 34861fc..43fb931 100644
--- a/libbacktrace/dwarf.c
+++ b/libbacktrace/dwarf.c
@@ -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