From 63d3765b455c6718c3a883a63dba3d0e377b2cff Mon Sep 17 00:00:00 2001
From: Constantin Papizh <p.const@bk.ru>
Date: Fri, 18 Oct 2019 18:07:58 +0300
Subject: [PATCH] Build issues

---
 CMakeLists.txt              | 2 +-
 include/dap_client_remote.h | 1 +
 include/dap_server.h        | 5 ++---
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1fbbeaf..45ccacd 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,7 +34,7 @@ endif()
 add_library(${PROJECT_NAME} STATIC ${DAP_SERVER_CORE_HEADERS} ${DAP_SERVER_CORE_SOURCES})
 
 if(WIN32)
-  target_link_libraries(${PROJECT_NAME} dap_core dap_crypto)
+  target_link_libraries(${PROJECT_NAME} dap_core dap_crypto ${CMAKE_CURRENT_SOURCE_DIR}/../lib/[x86_64CLANG]/wepoll[x86_64CLANG].a)
 endif()
 
 if(UNIX)
diff --git a/include/dap_client_remote.h b/include/dap_client_remote.h
index 22484b2..00a7065 100755
--- a/include/dap_client_remote.h
+++ b/include/dap_client_remote.h
@@ -38,6 +38,7 @@
     #define EPOLL_HANDLE  int
   #else
     #define EPOLL_HANDLE  HANDLE
+    #include "wepoll.h"
   #endif
 #endif
 
diff --git a/include/dap_server.h b/include/dap_server.h
index 1b3351a..2a22a50 100755
--- a/include/dap_server.h
+++ b/include/dap_server.h
@@ -21,17 +21,16 @@
 
 #ifndef _WIN32
 #include <netinet/in.h>
-
 #include <stdint.h>
-#include <pthread.h>
-
 #include <sys/epoll.h>
 #include <sys/timerfd.h>
 #define EPOLL_HANDLE  int
 #else
 #define EPOLL_HANDLE  HANDLE
+#include "wepoll.h"
 #endif
 
+#include <pthread.h>
 #include "uthash.h"
 #include "utlist.h"
 
-- 
GitLab