File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ version(OPENSSL_NO_SCTP) {} else {
78
78
version (Posix ) {
79
79
import core.sys.posix.netdb ;
80
80
} else version (Windows ) {
81
- import core.sys.windows.winsock2 ;
81
+ static if (__VERSION__ >= 2070 )
82
+ import core.sys.windows.winsock2 ;
83
+ else
84
+ import std.c.windows.winsock ;
82
85
} else version (Win64 ) {
83
86
import core.sys.windows.winsock2 ;
84
87
}
Original file line number Diff line number Diff line change @@ -73,7 +73,10 @@ public import deimos.openssl.pqueue;
73
73
// #endif
74
74
version (Windows ) {
75
75
/* Needed for timeval */
76
- import core.sys.windows.winsock2 ;
76
+ static if (__VERSION__ >= 2070 )
77
+ import core.sys.windows.winsock2 ;
78
+ else
79
+ import std.c.windows.winsock ;
77
80
// #elif defined(OPENSSL_SYS_NETWARE) && !defined(_WINSOCK2API_)
78
81
// #include <sys/timeval.h>
79
82
// #else
You can’t perform that action at this time.
0 commit comments