Parcourir la source

musl does not implement rawmemchr

Waldemar Brodkorb il y a 3 ans
Parent
commit
6790eafe89
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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)
 {