Fossil SCM
Fix http_socket.c so that it builds on Solaris.
Commit
f93184125d0c38e6ebc4fe6b81c5b21659752e52
Parent
196e0fd99a8e7ba…
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 | |
| 29 | +#ifndef __EXTENSIONS__ | |
| 30 | +# define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */ | |
| 31 | +#endif | |
| 29 | 32 | #include "config.h" |
| 30 | 33 | #include "http_socket.h" |
| 31 | 34 | #if defined(_WIN32) |
| 32 | 35 | # if !defined(_WIN32_WINNT) |
| 33 | 36 | # define _WIN32_WINNT 0x0501 |
| 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 | |
| 29 | #include "config.h" |
| 30 | #include "http_socket.h" |
| 31 | #if defined(_WIN32) |
| 32 | # if !defined(_WIN32_WINNT) |
| 33 | # define _WIN32_WINNT 0x0501 |
| 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 | |
| 29 | #ifndef __EXTENSIONS__ |
| 30 | # define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */ |
| 31 | #endif |
| 32 | #include "config.h" |
| 33 | #include "http_socket.h" |
| 34 | #if defined(_WIN32) |
| 35 | # if !defined(_WIN32_WINNT) |
| 36 | # define _WIN32_WINNT 0x0501 |
| 37 |