Fix Windows build by using lib/strcasestr.{c,h}
authorBruce Cran <bruce.cran@gmail.com>
Tue, 6 Oct 2015 00:18:50 +0000 (18:18 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 8 Oct 2015 18:58:06 +0000 (12:58 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
Makefile
os/os-windows.h

index d287126edc417ef117d0c9d50b6a4ffefc4f5cfe..1507464a009f0532d94ac28fcdb522bc5b63f280 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -237,6 +237,7 @@ ifneq (,$(findstring CYGWIN,$(CONFIG_TARGET_OS)))
     T_DEDUPE_OBJS += os/windows/posix.o lib/hweight.o
     T_SMALLOC_OBJS += os/windows/posix.o lib/hweight.o
     T_LFSR_TEST_OBJS += os/windows/posix.o lib/hweight.o
     T_DEDUPE_OBJS += os/windows/posix.o lib/hweight.o
     T_SMALLOC_OBJS += os/windows/posix.o lib/hweight.o
     T_LFSR_TEST_OBJS += os/windows/posix.o lib/hweight.o
+    T_ZIPF_OBJS += lib/strcasestr.o
 endif
 
 T_TEST_PROGS = $(T_SMALLOC_PROGS)
 endif
 
 T_TEST_PROGS = $(T_SMALLOC_PROGS)
index 9e931c9c9e505d8438117cd89c72a5d2a3dae7ab..ad1c3dfcbcf08d12d9b178ba241bb7578702501a 100644 (file)
@@ -16,6 +16,7 @@
 #include "../file.h"
 #include "../log.h"
 #include "../lib/hweight.h"
 #include "../file.h"
 #include "../log.h"
 #include "../lib/hweight.h"
+#include "../lib/strcasestr.h"
 
 #include "windows/posix.h"
 
 
 #include "windows/posix.h"