Skip to content

Commit

Permalink
t/genzipf: fix for strcasestr missing
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Dec 29, 2015
1 parent f87cc56 commit 2c2c93d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions oslib/strcasestr.c
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -23,3 +25,5 @@ char *strcasestr(const char *s1, const char *s2)

return *p ? NULL : (char *) s1;
}

#endif

0 comments on commit 2c2c93d

Please sign in to comment.