Fossil SCM
Fix harmless compiler warning.
Commit
7014c2ddf1bd5c71025e8eee3b883fa76ac52f487111e2dc83bfbab3e122c74a
Parent
af87fa5bcd93e31…
1 file changed
+3
+3
| --- src/http_socket.c | ||
| +++ src/http_socket.c | ||
| @@ -24,10 +24,13 @@ | ||
| 24 | 24 | ** |
| 25 | 25 | ** Low-level sockets are abstracted out into this module because they |
| 26 | 26 | ** are handled different on Unix and windows. |
| 27 | 27 | */ |
| 28 | 28 | #if defined(_WIN32) |
| 29 | +# if defined(_WIN32_WINNT) | |
| 30 | +# undef _WIN32_WINNT | |
| 31 | +# endif | |
| 29 | 32 | # define _WIN32_WINNT 0x501 |
| 30 | 33 | #endif |
| 31 | 34 | #ifndef __EXTENSIONS__ |
| 32 | 35 | # define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */ |
| 33 | 36 | #endif |
| 34 | 37 |
| --- src/http_socket.c | |
| +++ src/http_socket.c | |
| @@ -24,10 +24,13 @@ | |
| 24 | ** |
| 25 | ** Low-level sockets are abstracted out into this module because they |
| 26 | ** are handled different on Unix and windows. |
| 27 | */ |
| 28 | #if defined(_WIN32) |
| 29 | # define _WIN32_WINNT 0x501 |
| 30 | #endif |
| 31 | #ifndef __EXTENSIONS__ |
| 32 | # define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */ |
| 33 | #endif |
| 34 |
| --- src/http_socket.c | |
| +++ src/http_socket.c | |
| @@ -24,10 +24,13 @@ | |
| 24 | ** |
| 25 | ** Low-level sockets are abstracted out into this module because they |
| 26 | ** are handled different on Unix and windows. |
| 27 | */ |
| 28 | #if defined(_WIN32) |
| 29 | # if defined(_WIN32_WINNT) |
| 30 | # undef _WIN32_WINNT |
| 31 | # endif |
| 32 | # define _WIN32_WINNT 0x501 |
| 33 | #endif |
| 34 | #ifndef __EXTENSIONS__ |
| 35 | # define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */ |
| 36 | #endif |
| 37 |