summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-10-02 06:51:58 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2022-10-02 06:51:58 +0200
commit6790eafe897b3a8c19a2caf50a5ecccf06647adf (patch)
tree75fce837879c5fb7ddf7ad0d9a262e47c2148d5a
parent1f891b5655a6e3bd8c2beb0768ee97e8dcc3c9c0 (diff)
musl does not implement rawmemchr
-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)
{