Merge branch 'no-unittest-dep' of https://github.com/parallel-fs-utils/fio
[fio.git] / os / os-windows.h
index ddb752800191d77f679e53bfa641a56a3a214b6e..aad446e7b71da5f6c8a5846cfe9e8eae5386e5f7 100644 (file)
@@ -13,6 +13,7 @@
 #include <stdlib.h>
 
 #include "../smalloc.h"
+#include "../debug.h"
 #include "../file.h"
 #include "../log.h"
 #include "../lib/hweight.h"
@@ -73,6 +74,10 @@ int rand_r(unsigned *);
 /* Winsock doesn't support MSG_WAIT */
 #define OS_MSG_DONTWAIT        0
 
+#ifndef S_ISSOCK
+#define S_ISSOCK(x) 0
+#endif
+
 #define SIGCONT        0
 #define SIGUSR1        1
 #define SIGUSR2 2
@@ -191,6 +196,10 @@ static inline int fio_set_sched_idle(void)
        return (SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE))? 0 : -1;
 }
 
+#ifdef CONFIG_WINDOWS_XP
 #include "os-windows-xp.h"
+#else
+#include "os-windows-7.h"
+#endif
 
 #endif /* FIO_OS_WINDOWS_H */