From 2c2c93d8bd89c0cb15fc2430f9838744153a3946 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 28 Dec 2015 17:39:22 -0700 Subject: [PATCH 1/1] t/genzipf: fix for strcasestr missing Signed-off-by: Jens Axboe --- Makefile | 2 +- oslib/strcasestr.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.25.1