aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-11-15 12:09:46 +0100
committerMartin Willi <martin@revosec.ch>2014-06-04 16:32:06 +0200
commitb1ba0a666c4a46740bae63fd3cc005b7abfbe86d (patch)
tree94bb62d95b992671feaa5b07bf6c7c07f22d5a1f /src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
parentebb9362d85a5822c039b29673092267186a79cb9 (diff)
downloadstrongswan-b1ba0a666c4a46740bae63fd3cc005b7abfbe86d.tar.bz2
strongswan-b1ba0a666c4a46740bae63fd3cc005b7abfbe86d.tar.xz
kernel-wfp: Fix/Complete some fwpuclnt functionality in MinGW
While MinGW declares all the required symbols, some of them are missing in the library files. We provide missing variables locally, functions get a stub that call the GetProcAddress()ed function from the DLL. Also some MinGW headers define some enum values incorrectly, we overload these using defines.
Diffstat (limited to 'src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c')
-rw-r--r--src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c b/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
index dd80ea617..caf955d55 100644
--- a/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
+++ b/src/libcharon/plugins/kernel_wfp/kernel_wfp_ipsec.c
@@ -16,6 +16,7 @@
/* Windows 7, for some fwpmu.h functionality */
#define _WIN32_WINNT 0x0601
+#include "kernel_wfp_compat.h"
#include "kernel_wfp_ipsec.h"
#include <daemon.h>
@@ -23,9 +24,6 @@
#include <collections/array.h>
#include <collections/hashtable.h>
-#include <fwpmtypes.h>
-#include <fwpmu.h>
-#undef interface
typedef struct private_kernel_wfp_ipsec_t private_kernel_wfp_ipsec_t;