Further websockets build fixes

This commit is contained in:
def 2020-09-17 13:44:47 +02:00
parent 2c66f7388a
commit 24526d0fc8
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ endif()
set_extra_dirs_lib(WEBSOCKETS websockets) set_extra_dirs_lib(WEBSOCKETS websockets)
find_library(WEBSOCKETS_LIBRARY find_library(WEBSOCKETS_LIBRARY
NAMES websockets NAMES websockets websockets.17
HINTS ${HINTS_WEBSOCKETS_LIBDIR} ${PC_WEBSOCKETS_LIBDIR} ${PC_WEBSOCKETS_LIBRARY_DIRS} HINTS ${HINTS_WEBSOCKETS_LIBDIR} ${PC_WEBSOCKETS_LIBDIR} ${PC_WEBSOCKETS_LIBRARY_DIRS}
PATHS ${PATHS_WEBSOCKETS_LIBDIR} PATHS ${PATHS_WEBSOCKETS_LIBDIR}
${CROSSCOMPILING_NO_CMAKE_SYSTEM_PATH} ${CROSSCOMPILING_NO_CMAKE_SYSTEM_PATH}

View file

@ -10,7 +10,7 @@
#if defined(CONF_FAMILY_UNIX) #if defined(CONF_FAMILY_UNIX)
#include <arpa/inet.h> #include <arpa/inet.h>
#elif defined(CONF_FAMILY_WINDOWS) #elif defined(CONF_FAMILY_WINDOWS)
#include <Ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif
#include <libwebsockets.h> #include <libwebsockets.h>