Skip to content

Commit 7d1aa64

Browse files
h3ndrkrillian
authored andcommitted
Do not check for winsock2.h
Signed-off-by: Ralph Giles <giles@thaumas.net> Signed-off-by: evpobr <evpobr@gmail.com>
1 parent c81d65c commit 7d1aa64

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,7 @@ if(NOT OP_DISABLE_HTTP)
9898
include(CheckIncludeFile)
9999
include(CheckCSourceCompiles)
100100
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()
101+
if(NOT WIN32)
107102
check_include_file("sys/socket.h" OP_HAVE_SYS_SOCKET_H)
108103
if(NOT OP_HAVE_SYS_SOCKET_H)
109104
message(FATAL_ERROR "HTTP support requires a POSIX socket library")

0 commit comments

Comments
 (0)