LibTLS: Port to Windows

This commit is contained in:
stasoid 2024-12-14 15:10:42 +05:00 committed by Jelle Raaijmakers
commit 8ac5424f3a
Notes: github-actions[bot] 2024-12-15 07:21:11 +00:00
2 changed files with 5 additions and 4 deletions

View file

@ -14,3 +14,8 @@ serenity_lib(LibTLS tls)
target_link_libraries(LibTLS PRIVATE LibCore LibCrypto LibFileSystem)
include(ca_certificates_data)
if (WIN32)
find_package(pthread REQUIRED)
target_include_directories(LibTLS PRIVATE ${PTHREAD_INCLUDE_DIR})
endif()

View file

@ -23,10 +23,6 @@
#include <LibTLS/TLSv12.h>
#include <errno.h>
#ifndef SOCK_NONBLOCK
# include <sys/ioctl.h>
#endif
namespace TLS {
void TLSv12::consume(ReadonlyBytes record)