engines/sg: improve error handling
[fio.git] / oslib / strcasestr.c
index 92cf24c6778d7d4934598be426cb60b75f6dda96..5fa05fa1404ac1daa2f9d7e9be70962e9587eb35 100644 (file)
@@ -1,5 +1,8 @@
+#ifndef CONFIG_STRCASESTR
+
 #include <ctype.h>
 #include <stddef.h>
+#include "strcasestr.h"
 
 char *strcasestr(const char *s1, const char *s2)
 {
@@ -23,3 +26,5 @@ char *strcasestr(const char *s1, const char *s2)
 
        return *p ? NULL : (char *) s1;
 }
+
+#endif