From: Jens Axboe Date: Tue, 29 Dec 2015 00:39:22 +0000 (-0700) Subject: t/genzipf: fix for strcasestr missing X-Git-Tag: fio-2.4~26 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=2c2c93d8bd89c0cb15fc2430f9838744153a3946;hp=f87cc56144a77e2e9b485eb7ddb064cf2da5f9a1 t/genzipf: fix for strcasestr missing Signed-off-by: Jens Axboe --- diff --git a/Makefile b/Makefile index 2ff88a1d..510e2570 100644 --- a/Makefile +++ b/Makefile @@ -200,7 +200,7 @@ T_IEEE_PROGS = t/ieee754 T_ZIPF_OBS = t/genzipf.o T_ZIPF_OBJS += t/log.o lib/ieee754.o lib/rand.o lib/pattern.o lib/zipf.o \ - lib/strntol.o lib/gauss.o t/genzipf.o + lib/strntol.o lib/gauss.o t/genzipf.o oslib/strcasestr.o T_ZIPF_PROGS = t/fio-genzipf T_AXMAP_OBJS = t/axmap.o diff --git a/oslib/strcasestr.c b/oslib/strcasestr.c index 92cf24c6..26266091 100644 --- a/oslib/strcasestr.c +++ b/oslib/strcasestr.c @@ -1,6 +1,8 @@ #include #include +#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