build: remove HAVE_SYS_SOCKET define should be present on all unix systems

This commit is contained in:
sithlord48
2025-06-13 22:26:42 -04:00
committed by Nick Bolton
parent cb05ece6b6
commit eac59768ea
3 changed files with 4 additions and 17 deletions

View File

@ -83,6 +83,9 @@ macro(configure_unix_libs)
include(CheckCSourceCompiles)
check_include_files(sys/socket.h HAVE_SYS_SOCKET_H)
if (NOT HAVE_SYS_SOCKET_H)
message(FATAL_ERROR "Missing header: sys/socket.h")
endif()
check_include_files(unistd.h HAVE_UNISTD_H)