Skip to content

Commit

Permalink
Fix compilation on DMD < 2.070.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed May 13, 2017
1 parent cd65de6 commit 7c445ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion deimos/openssl/bio.d
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ version(OPENSSL_NO_SCTP) {} else {
version (Posix) {
import core.sys.posix.netdb;
} else version (Windows) {
import core.sys.windows.winsock2;
static if (__VERSION__ >= 2070)
import core.sys.windows.winsock2;
else
import std.c.windows.winsock;
} else version (Win64) {
import core.sys.windows.winsock2;
}
Expand Down
5 changes: 4 additions & 1 deletion deimos/openssl/dtls1.d
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public import deimos.openssl.pqueue;
// #endif
version (Windows) {
/* Needed for timeval */
import core.sys.windows.winsock2;
static if (__VERSION__ >= 2070)
import core.sys.windows.winsock2;
else
import std.c.windows.winsock;
// #elif defined(OPENSSL_SYS_NETWARE) && !defined(_WINSOCK2API_)
// #include <sys/timeval.h>
// #else
Expand Down

0 comments on commit 7c445ab

Please sign in to comment.