t/genzipf: fix for strcasestr missing
[fio.git] / oslib / strcasestr.c
index 92cf24c6778d7d4934598be426cb60b75f6dda96..262660911cdfbb96c7cc43135f0d7d1fcf290ff7 100644 (file)
@@ -1,6 +1,8 @@
 #include <ctype.h>
 #include <stddef.h>
 
+#ifndef CONFIG_STRCASESTR
+
 char *strcasestr(const char *s1, const char *s2)
 {
        const char *s = s1;
@@ -23,3 +25,5 @@ char *strcasestr(const char *s1, const char *s2)
 
        return *p ? NULL : (char *) s1;
 }
+
+#endif