Skip to content
Snippets Groups Projects
Commit d2f5b199 authored by Joakim Söderberg's avatar Joakim Söderberg Committed by Andy Green
Browse files

windows Fix build.

parent e9b61b5b
No related branches found
No related tags found
No related merge requests found
...@@ -486,7 +486,11 @@ if (LWS_WITH_SSL) ...@@ -486,7 +486,11 @@ if (LWS_WITH_SSL)
message("OpenSSL libraries: ${OPENSSL_LIBRARIES}") message("OpenSSL libraries: ${OPENSSL_LIBRARIES}")
include_directories("${OPENSSL_INCLUDE_DIR}") include_directories("${OPENSSL_INCLUDE_DIR}")
list(APPEND LIB_LIST ${OPENSSL_LIBRARIES} dl) list(APPEND LIB_LIST ${OPENSSL_LIBRARIES})
# Link against dynamic linking functions.
# (Don't link directly to libdl since it is not needed on all platforms, it's now a part of libc).
list(APPEND LIB_LIST ${CMAKE_DL_LIBS})
endif() endif()
endif(LWS_WITH_SSL) endif(LWS_WITH_SSL)
......
...@@ -82,6 +82,13 @@ ...@@ -82,6 +82,13 @@
#define lws_set_blocking_send(wsi) wsi->sock_send_blocking = TRUE #define lws_set_blocking_send(wsi) wsi->sock_send_blocking = TRUE
#include <winsock2.h> #include <winsock2.h>
#include <windows.h> #include <windows.h>
#include <tchar.h>
#include <mstcpip.h>
#ifndef __func__
#define __func__ __FUNCTION__
#endif
#define LWS_INVALID_FILE INVALID_HANDLE_VALUE #define LWS_INVALID_FILE INVALID_HANDLE_VALUE
#else /* not windows --> */ #else /* not windows --> */
#include <errno.h> #include <errno.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment