summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/strnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/strnlen.c')
-rw-r--r--openbsd-compat/strnlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/strnlen.c b/openbsd-compat/strnlen.c
index 93d51559..8cc6b96b 100644
--- a/openbsd-compat/strnlen.c
+++ b/openbsd-compat/strnlen.c
@@ -19,7 +19,7 @@
/* OPENBSD ORIGINAL: lib/libc/string/strnlen.c */
#include "config.h"
-#ifndef HAVE_STRNLEN
+#if !defined(HAVE_STRNLEN) || defined(BROKEN_STRNLEN)
#include <sys/types.h>
#include <string.h>