From 044c9b24f325faba4e9eb47cead61f976f912691 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Fri, 13 Jun 2025 22:21:26 -0400 Subject: [PATCH] build: remove HAVE_SOCKLEN_T forced define --- cmake/Libraries.cmake | 4 ---- src/lib/Config.h.in | 3 --- src/lib/arch/unix/ArchNetworkBSD.h | 4 ---- 3 files changed, 11 deletions(-) diff --git a/cmake/Libraries.cmake b/cmake/Libraries.cmake index eaf1cce4d..70e06f155 100644 --- a/cmake/Libraries.cmake +++ b/cmake/Libraries.cmake @@ -156,10 +156,6 @@ macro(configure_unix_libs) endif() endif() - # For config.h, set some static values; it may be a good idea to make these - # values dynamic for non-standard UNIX compilers. - set(HAVE_SOCKLEN_T 1) - # Unix only: For config.h, save the results based on a template (config.h.in). # Note that this won't work on Windows because filenames are not case sensitive, # and we have header files named "Config.h" (upper case 'C'). diff --git a/src/lib/Config.h.in b/src/lib/Config.h.in index 82c6b11e4..18dafad22 100644 --- a/src/lib/Config.h.in +++ b/src/lib/Config.h.in @@ -16,9 +16,6 @@ /* Define if you have POSIX threads libraries and header files. */ #cmakedefine HAVE_PTHREAD @HAVE_PTHREAD@ -/* Define if your compiler defines socklen_t. */ -#cmakedefine HAVE_SOCKLEN_T @HAVE_SOCKLEN_T@ - /* Define to 1 if you have the header file. */ #cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@ diff --git a/src/lib/arch/unix/ArchNetworkBSD.h b/src/lib/arch/unix/ArchNetworkBSD.h index ec16c73b0..03b2fd2ab 100644 --- a/src/lib/arch/unix/ArchNetworkBSD.h +++ b/src/lib/arch/unix/ArchNetworkBSD.h @@ -25,10 +25,6 @@ struct sockaddr_storage }; #endif -#if !HAVE_SOCKLEN_T -using socklen_t = int; -#endif - #include #define ARCH_NETWORK ArchNetworkBSD