We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c81d65c commit 7d1aa64Copy full SHA for 7d1aa64
CMakeLists.txt
@@ -98,12 +98,7 @@ if(NOT OP_DISABLE_HTTP)
98
include(CheckIncludeFile)
99
include(CheckCSourceCompiles)
100
cmake_push_check_state(RESET)
101
- if(WIN32)
102
- check_include_file("winsock2.h" OP_HAVE_WINSOCK2_H)
103
- if(NOT OP_HAVE_WINSOCK2_H)
104
- message(FATAL_ERROR "HTTP support requires a Winsock socket library")
105
- endif()
106
- else()
+ if(NOT WIN32)
107
check_include_file("sys/socket.h" OP_HAVE_SYS_SOCKET_H)
108
if(NOT OP_HAVE_SYS_SOCKET_H)
109
message(FATAL_ERROR "HTTP support requires a POSIX socket library")
0 commit comments