aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/iobuf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/iobuf.c b/common/iobuf.c
index 71930208c..d78e5d2e2 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -40,6 +40,9 @@
#include <fcntl.h>
#include <unistd.h>
#ifdef HAVE_W32_SYSTEM
+# ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+# endif
# include <windows.h>
#endif
#ifdef __riscos__