aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-07-06 20:32:34 +0300
committerBrent Cook <busterb@gmail.com>2023-07-06 20:32:34 +0300
commitafcd4be8a72abcae003f1760eea407cf3db5e14e (patch)
tree32bcab14ec9ad3fe2923575628356f7a75accbf0 /CMakeLists.txt
parent4aa76421303aaddbae7da8cf76549d5c0f1419be (diff)
downloadportable-afcd4be8a72abcae003f1760eea407cf3db5e14e.tar.gz
portable-afcd4be8a72abcae003f1760eea407cf3db5e14e.tar.bz2
portable-afcd4be8a72abcae003f1760eea407cf3db5e14e.zip
change socket / file descriptor checks on windows
based on discussion in https://github.com/libressl/portable/issues/266 and https://bugs.python.org/issue23524 adjust the compat layer for Windows to use _get_osfhandle in combination with _set_thread_local_invalid_parameter_handler if applicable to more reliably determine if a handle is a socket, file, or closed socket. This prevents assertions when calling tls_close on an already-closed socket.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8863c4..02699d0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,7 +121,7 @@ if(WIN32)
121 if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore") 121 if(NOT CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
122 add_definitions(-D_WIN32_WINNT=0x0600) 122 add_definitions(-D_WIN32_WINNT=0x0600)
123 endif() 123 endif()
124 set(PLATFORM_LIBS ${PLATFORM_LIBS} ws2_32 bcrypt) 124 set(PLATFORM_LIBS ${PLATFORM_LIBS} ws2_32 ntdll bcrypt)
125endif() 125endif()
126 126
127if(MSVC) 127if(MSVC)