Skip to contentSkip to conversation

Fix Windows build by using lib/strcasestr.{c,h}

PATCH In review Bruce Cran 2 participants 2 messages Oct 6, 2015 – Oct 8, 2015 Kbuild

lore
Share & tools
lore

Bruce Cran

author
#0 lore raw

PATCH 1/1 Fix Windows build by using lib/strcasestr.{c,h}

---
 Makefile        | 1 +
 os/os-windows.h | 1 +
 2 files changed, 2 insertions(+)
Makefile +1 -0
index d287126..1507464 100644
@@ -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_ZIPF_OBJS += lib/strcasestr.o
 endif
 
 T_TEST_PROGS = $(T_SMALLOC_PROGS)
os/os-windows.h +1 -0
index 9e931c9..ad1c3df 100644
@@ -16,6 +16,7 @@
 #include "../file.h"
 #include "../log.h"
 #include "../lib/hweight.h"
+#include "../lib/strcasestr.h"
 
 #include "windows/posix.h"
 
Signature · 1 line
2.5.2.windows.2
#1 lore raw
Quoted 4 lines · Bruce Cran
---
  Makefile        | 1 +
  os/os-windows.h | 1 +
  2 files changed, 2 insertions(+)

My bad, thanks Bruce!

Signature · 1 line
Jens Axboe