diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2022-10-02 06:51:58 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-10-02 06:51:58 +0200 |
commit | 6790eafe897b3a8c19a2caf50a5ecccf06647adf (patch) | |
tree | 75fce837879c5fb7ddf7ad0d9a262e47c2148d5a /test | |
parent | 1f891b5655a6e3bd8c2beb0768ee97e8dcc3c9c0 (diff) |
musl does not implement rawmemchr
Diffstat (limited to 'test')
-rw-r--r-- | test/string/tester.c | 4 |
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) { |