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
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
echo "CONFIG_FADVISE=y" >> $config_host_mak
echo "CONFIG_SFAA=y" >> $config_host_mak
echo "CONFIG_RUSAGE_THREAD=y" >> $config_host_mak
+ echo "CONFIG_WINDOWSAIO=y" >> $config_host_mak
exit 0
esac
#include "stat.h"
#include "flow.h"
-#ifdef FIO_HAVE_SOLARISAIO
+#ifdef CONFIG_SOLARISAIO
#include <sys/asynch.h>
#endif
.help = "Solaris native asynchronous IO",
},
#endif
-#ifdef FIO_HAVE_WINDOWSAIO
+#ifdef CONFIG_WINDOWSAIO
{ .ival = "windowsaio",
.help = "Windows native asynchronous IO"
},
#define FIO_HAVE_CPU_AFFINITY
#define FIO_HAVE_CHARDEV_SIZE
#define FIO_HAVE_FDATASYNC
-#define FIO_HAVE_WINDOWSAIO
#define FIO_HAVE_GETTID
#define FIO_USE_GENERIC_RAND