Browse Source

musl does not implement rawmemchr

Waldemar Brodkorb 1 year ago
parent
commit
6790eafe89
1 changed files with 4 additions and 0 deletions
  1. 4 0
      test/string/tester.c

+ 4 - 0
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)
 {