aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index dd55a81c04..5ef3a413d0 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -24,6 +24,9 @@
#error "It seems your platform does not represent NULL as zero. We can't cope."
#endif
+#ifdef HAVE_WINSOCK_H
+#include <winsock.h>
+#endif
#if _MSC_VER > 1300
#include <winsock2.h>
#include <ws2tcpip.h>