Browse code

Fix Windows build

Shawn Webb authored on 2014/07/03 02:45:56
Showing 3 changed files
... ...
@@ -22,6 +22,12 @@
22 22
 #ifndef __CLAMAV_H
23 23
 #define __CLAMAV_H
24 24
 
25
+#ifdef _WIN32
26
+#ifndef OWN_WINSOCK
27
+#include <winsock2.h>
28
+#endif
29
+#endif
30
+
25 31
 #include <openssl/ssl.h>
26 32
 #include <openssl/err.h>
27 33
 
... ...
@@ -31,6 +31,9 @@
31 31
 #define REPO_VERSION VERSION
32 32
 #endif
33 33
 
34
+#include <WinSock.h>
35
+#define OWN_WINSOCK
36
+
34 37
 #include "SigUIMain.h"
35 38
 #include "installdb.h"
36 39
 #include <wx/clipbrd.h>
... ...
@@ -28,6 +28,9 @@
28 28
 #include <wx/dir.h>
29 29
 #include <wx/evtloop.h>
30 30
 
31
+#include <WinSock.h>
32
+#define OWN_WINSOCK
33
+
31 34
 #include "../../../../libclamav/clamav.h"
32 35
 #include "installdb.h"
33 36
 #include <errno.h>