summaryrefslogtreecommitdiff
path: root/libbacktrace/dwarf.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-18 16:50:29 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-18 16:50:29 +0000
commit249b4e859d1d588f3c8b940d1145015ce598d261 (patch)
tree800c39c7096ae20c34e2614acd318b99de4161f6 /libbacktrace/dwarf.c
parentc0f8b102f52d44f3b279d7fd23416b855bd36756 (diff)
downloadgcc-249b4e859d1d588f3c8b940d1145015ce598d261.tar.gz
* dwarf.c: Correct test of HAVE_DECL_STRNLEN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191437 138bc75d-0d04-0410-961f-82ee72b054a4
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 34861fce484..43fb931da16 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