summaryrefslogtreecommitdiff
path: root/libc/string/i386/strnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/i386/strnlen.c')
-rw-r--r--libc/string/i386/strnlen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/string/i386/strnlen.c b/libc/string/i386/strnlen.c
index af512f10a..77b5c7568 100644
--- a/libc/string/i386/strnlen.c
+++ b/libc/string/i386/strnlen.c
@@ -32,6 +32,7 @@
#include <string.h>
+#ifdef __USE_GNU
libc_hidden_proto(strnlen)
size_t strnlen(const char *s, size_t count)
{
@@ -52,3 +53,4 @@ size_t strnlen(const char *s, size_t count)
return __res;
}
libc_hidden_def(strnlen)
+#endif