aboutsummaryrefslogtreecommitdiffstats
path: root/common/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/logging.c')
-rw-r--r--common/logging.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/logging.c b/common/logging.c
index 2b5bb2db1..bdc284fef 100644
--- a/common/logging.c
+++ b/common/logging.c
@@ -41,6 +41,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_W32_SYSTEM
+# ifdef HAVE_WINSOCK2_H
+# include <winsock2.h>
+# endif
# include <windows.h>
#else /*!HAVE_W32_SYSTEM*/
# include <sys/socket.h>