aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 9aecd2d..7ebaa04 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1,4 +1,6 @@
#ifdef _WIN32
+ // prevent windows.h from including winsock.h, which will allow us to include winsock2.h
+ #define _WINSOCKAPI_
#include <direct.h>
#include <windows.h>
#include <process.h>