summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorSitsofe Wheeler <sitsofe@yahoo.com>2018-03-25 20:56:07 +0100
committerSitsofe Wheeler <sitsofe@yahoo.com>2018-03-27 20:18:38 +0100
commita6ab5391edbc87bdf1e5c0d218ccf7d8325a8c55 (patch)
treeaefea32d4604160fbcf1b96822050773ef1a9ef3 /server.c
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 <sitsofe@yahoo.com>
Diffstat (limited to 'server.c')
-rw-r--r--server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.c b/server.c
index d3f6977..90c7057 100644
--- a/server.c
+++ b/server.c
@@ -2145,14 +2145,14 @@ static int fio_init_server_ip(void)
#endif
if (use_ipv6) {
- const void *src = &saddr_in6.sin6_addr;
+ void *src = &saddr_in6.sin6_addr;
addr = (struct sockaddr *) &saddr_in6;
socklen = sizeof(saddr_in6);
saddr_in6.sin6_family = AF_INET6;
str = inet_ntop(AF_INET6, src, buf, sizeof(buf));
} else {
- const void *src = &saddr_in.sin_addr;
+ void *src = &saddr_in.sin_addr;
addr = (struct sockaddr *) &saddr_in;
socklen = sizeof(saddr_in);
@@ -2220,7 +2220,7 @@ static int fio_init_server_connection(void)
if (!bind_sock) {
char *p, port[16];
- const void *src;
+ void *src;
int af;
if (use_ipv6) {