summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/string/tester.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/string/tester.c b/test/string/tester.c
index 6944f27..983a429 100644
--- a/test/string/tester.c
+++ b/test/string/tester.c
@@ -622,6 +622,10 @@ test_strchrnul (void)
}
}
+#if !defined (__UCLIBC__) || !defined(__GLIBC__)
+#define rawmemchr(s,c) memchr((s),(size_t)-1,(c))
+#endif
+
static void
test_rawmemchr (void)
{