configure: solaris and windowsaio fixups
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/Makefile b/Makefile
index 84988f8..dab6e88 100644
--- a/Makefile
+++ b/Makefile
@@ -80,6 +80,10 @@
CFLAGS += -DCONFIG_SOLARISAIO
SOURCE += engines/solarisaio.c
endif
+ifdef CONFIG_WINDOWSAIO
+ CFLAGS += -DCONFIG_WINDOWSAIO
+ SOURCE += engines/windowsaio.c
+endif
ifndef CONFIG_STRSEP
CFLAGS += -DCONFIG_STRSEP
@@ -184,7 +188,7 @@
endif
ifneq (,$(findstring CYGWIN,$(UNAME)))
SOURCE := $(filter-out engines/mmap.c,$(SOURCE))
- SOURCE += engines/windowsaio.c os/windows/posix.c
+ SOURCE += os/windows/posix.c
LIBS += -lpthread -lpsapi -lws2_32
CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format
endif