path: root/os/os-windows.h
diff options
authorSitsofe Wheeler <>2018-03-25 20:56:07 +0100
committerSitsofe Wheeler <>2018-03-27 20:18:38 +0100
commita6ab5391edbc87bdf1e5c0d218ccf7d8325a8c55 (patch)
treeaefea32d4604160fbcf1b96822050773ef1a9ef3 /os/os-windows.h
parentdac7244bf482557c2e46aac1171c3890b3d9316f (diff)
windows: target Windows 7 and add support for more than 64 CPUs
Introduce support for targeting the build to either Windows XP or Windows 7 (the default). When targeting Windows 7 this allows us to use the process group APIs which are required are required to support more than 64 CPUs. These changes mean if you want a Windows binary that supports versions of Windows below Windows 7/Windows Server 2008 R2 you will need to explicitly use the --target-win-ver=xp configure option at build time. Such builds will lack features (such as the ability to access CPUs beyond those in fio's default process group) that are dependent on recent Windows APIs. Signed-off-by: Sitsofe Wheeler <>
Diffstat (limited to 'os/os-windows.h')
1 files changed, 5 insertions, 0 deletions
diff --git a/os/os-windows.h b/os/os-windows.h
index ddb75280..01f555e1 100644
--- a/os/os-windows.h
+++ b/os/os-windows.h
@@ -13,6 +13,7 @@
#include <stdlib.h>
#include "../smalloc.h"
+#include "../debug.h"
#include "../file.h"
#include "../log.h"
#include "../lib/hweight.h"
@@ -191,6 +192,10 @@ static inline int fio_set_sched_idle(void)
return (SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_IDLE))? 0 : -1;
#include "os-windows-xp.h"
+#include "os-windows-7.h"
#endif /* FIO_OS_WINDOWS_H */