summaryrefslogtreecommitdiff
path: root/oslib
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-12-28 17:39:22 -0700
committerJens Axboe <axboe@fb.com>2015-12-28 17:39:22 -0700
commit2c2c93d8bd89c0cb15fc2430f9838744153a3946 (patch)
tree6473890c53deeaf05bff5d4675578247aea825cd /oslib
parentf87cc56144a77e2e9b485eb7ddb064cf2da5f9a1 (diff)
t/genzipf: fix for strcasestr missing
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'oslib')
-rw-r--r--oslib/strcasestr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/oslib/strcasestr.c b/oslib/strcasestr.c
index 92cf24c..2626609 100644
--- a/oslib/strcasestr.c
+++ b/oslib/strcasestr.c
@@ -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