summaryrefslogtreecommitdiff
path: root/libc/string/generic/memmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/generic/memmem.c')
-rw-r--r--libc/string/generic/memmem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/string/generic/memmem.c b/libc/string/generic/memmem.c
index c2e8547be..5d4e6f151 100644
--- a/libc/string/generic/memmem.c
+++ b/libc/string/generic/memmem.c
@@ -19,6 +19,7 @@
#include <string.h>
#include <stddef.h>
+#ifdef __USE_GNU
libc_hidden_proto(memmem)
libc_hidden_proto(memcmp)
@@ -50,3 +51,4 @@ void *memmem (const void *haystack, size_t haystack_len,
return NULL;
}
libc_hidden_def(memmem)
+#endif