Fossil SCM
Fix [0eeaa6224cdbdbda] so that it compiles on Windows. [forum:/forumpost/3fc7aad2a3|Forum post 3fc7aad2a3].
Commit
ccb416861656ce88e6302c241625eeaafe9d71a456e70d665a41e21e080836a2
Parent
d14a7803d77e8d0…
1 file changed
+2
+2
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -2498,10 +2498,11 @@ | ||
| 2498 | 2498 | fossil_free(zToFree); |
| 2499 | 2499 | fgetc(g.httpIn); /* Read past the "," separating header from content */ |
| 2500 | 2500 | cgi_init(); |
| 2501 | 2501 | } |
| 2502 | 2502 | |
| 2503 | +#if !defined(_WIN32) | |
| 2503 | 2504 | /* |
| 2504 | 2505 | ** Change the listening socket, if necessary, so that it will accept both IPv4 |
| 2505 | 2506 | ** and IPv6 |
| 2506 | 2507 | */ |
| 2507 | 2508 | static void allowBothIpV4andV6(int listener){ |
| @@ -2513,10 +2514,11 @@ | ||
| 2513 | 2514 | ipv6only = 0; |
| 2514 | 2515 | setsockopt(listener, IPPROTO_IPV6, IPV6_V6ONLY, &ipv6only, ipv6only_size); |
| 2515 | 2516 | } |
| 2516 | 2517 | #endif /* defined(IPV6_ONLY) */ |
| 2517 | 2518 | } |
| 2519 | +#endif /* !defined(_WIN32) */ | |
| 2518 | 2520 | |
| 2519 | 2521 | |
| 2520 | 2522 | #if INTERFACE |
| 2521 | 2523 | /* |
| 2522 | 2524 | ** Bitmap values for the flags parameter to cgi_http_server(). |
| 2523 | 2525 |
| --- 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 |