Pārlūkot izejas kodu

musl does not implement rawmemchr

Waldemar Brodkorb 3 gadi atpakaļ
vecāks
revīzija
6790eafe89
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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)
 {