ref: 7d1aa64f9a84011d8eba559d109a83b61d6c6ac5
parent: c81d65c02c84a7e3df7b0fb5d90383a2b60ee1cb
author: Hendrik <git@h3ndrk.de>
date: Sat Jun 5 07:54:04 EDT 2021
Do not check for winsock2.h Signed-off-by: Ralph Giles <giles@thaumas.net> Signed-off-by: evpobr <evpobr@gmail.com>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,12 +98,7 @@
include(CheckIncludeFile)
include(CheckCSourceCompiles)
cmake_push_check_state(RESET)
- if(WIN32)
- check_include_file("winsock2.h" OP_HAVE_WINSOCK2_H)
- if(NOT OP_HAVE_WINSOCK2_H)
- message(FATAL_ERROR "HTTP support requires a Winsock socket library")
- endif()
- else()
+ if(NOT WIN32)
check_include_file("sys/socket.h" OP_HAVE_SYS_SOCKET_H)
if(NOT OP_HAVE_SYS_SOCKET_H)
message(FATAL_ERROR "HTTP support requires a POSIX socket library")