Skip to content
Snippets Groups Projects
Verified Commit 7d1aa64f authored by Hendrik's avatar Hendrik Committed by Ralph Giles
Browse files

Do not check for winsock2.h


Signed-off-by: default avatarRalph Giles <giles@thaumas.net>
Signed-off-by: default avatarevpobr <evpobr@gmail.com>
parent c81d65c0
Branches master
No related tags found
1 merge request!31cmake support
......@@ -98,12 +98,7 @@ if(NOT OP_DISABLE_HTTP)
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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment