Fossil SCM

Fix http_socket.c so that it builds on Solaris.

drh 2015-03-26 13:35 trunk
Commit f93184125d0c38e6ebc4fe6b81c5b21659752e52
1 file changed +3
--- src/http_socket.c
+++ src/http_socket.c
@@ -24,10 +24,13 @@
2424
**
2525
** Low-level sockets are abstracted out into this module because they
2626
** are handled different on Unix and windows.
2727
*/
2828
29
+#ifndef __EXTENSIONS__
30
+# define __EXTENSIONS__ 1 /* IPv6 won't compile on Solaris without this */
31
+#endif
2932
#include "config.h"
3033
#include "http_socket.h"
3134
#if defined(_WIN32)
3235
# if !defined(_WIN32_WINNT)
3336
# define _WIN32_WINNT 0x0501
3437
--- 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

Keyboard Shortcuts

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