Fossil SCM

Fix [0eeaa6224cdbdbda] so that it compiles on Windows. [forum:/forumpost/3fc7aad2a3|Forum post 3fc7aad2a3].

drh 2025-04-16 14:31 trunk
Commit ccb416861656ce88e6302c241625eeaafe9d71a456e70d665a41e21e080836a2
1 file changed +2
+2
--- src/cgi.c
+++ src/cgi.c
@@ -2498,10 +2498,11 @@
24982498
fossil_free(zToFree);
24992499
fgetc(g.httpIn); /* Read past the "," separating header from content */
25002500
cgi_init();
25012501
}
25022502
2503
+#if !defined(_WIN32)
25032504
/*
25042505
** Change the listening socket, if necessary, so that it will accept both IPv4
25052506
** and IPv6
25062507
*/
25072508
static void allowBothIpV4andV6(int listener){
@@ -2513,10 +2514,11 @@
25132514
ipv6only = 0;
25142515
setsockopt(listener, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, ipv6only_size);
25152516
}
25162517
#endif /* defined(IPV6_ONLY) */
25172518
}
2519
+#endif /* !defined(_WIN32) */
25182520
25192521
25202522
#if INTERFACE
25212523
/*
25222524
** Bitmap values for the flags parameter to cgi_http_server().
25232525
--- src/cgi.c
+++ src/cgi.c
@@ -2498,10 +2498,11 @@
2498 fossil_free(zToFree);
2499 fgetc(g.httpIn); /* Read past the "," separating header from content */
2500 cgi_init();
2501 }
2502
 
2503 /*
2504 ** Change the listening socket, if necessary, so that it will accept both IPv4
2505 ** and IPv6
2506 */
2507 static void allowBothIpV4andV6(int listener){
@@ -2513,10 +2514,11 @@
2513 ipv6only = 0;
2514 setsockopt(listener, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, ipv6only_size);
2515 }
2516 #endif /* defined(IPV6_ONLY) */
2517 }
 
2518
2519
2520 #if INTERFACE
2521 /*
2522 ** Bitmap values for the flags parameter to cgi_http_server().
2523
--- src/cgi.c
+++ src/cgi.c
@@ -2498,10 +2498,11 @@
2498 fossil_free(zToFree);
2499 fgetc(g.httpIn); /* Read past the "," separating header from content */
2500 cgi_init();
2501 }
2502
2503 #if !defined(_WIN32)
2504 /*
2505 ** Change the listening socket, if necessary, so that it will accept both IPv4
2506 ** and IPv6
2507 */
2508 static void allowBothIpV4andV6(int listener){
@@ -2513,10 +2514,11 @@
2514 ipv6only = 0;
2515 setsockopt(listener, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, ipv6only_size);
2516 }
2517 #endif /* defined(IPV6_ONLY) */
2518 }
2519 #endif /* !defined(_WIN32) */
2520
2521
2522 #if INTERFACE
2523 /*
2524 ** Bitmap values for the flags parameter to cgi_http_server().
2525

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button