diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fbbeaf64dbc01d6484b5274564411e77bce7fd3..45ccacd48b298db82b28bb2bc91cca7ae492a814 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 22484b29467cd709f56fa2542698875a5123ca31..00a70653d7f63c2d836c17f9586b6b6f6a61eab6 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 1b3351aa49a84f6baa96862d6ef8f020211f9174..2a22a502ffc69e51331d0f3254a6e461f22dabf4 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"