build: remove HAVE_SOCKLEN_T forced define

This commit is contained in:
sithlord48 2025-06-13 22:21:26 -04:00 committed by Nick Bolton
parent a3fe66f213
commit 044c9b24f3
3 changed files with 0 additions and 11 deletions

View file

@ -156,10 +156,6 @@ macro(configure_unix_libs)
endif() endif()
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). # 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, # 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'). # and we have header files named "Config.h" (upper case 'C').

View file

@ -16,9 +16,6 @@
/* Define if you have POSIX threads libraries and header files. */ /* Define if you have POSIX threads libraries and header files. */
#cmakedefine HAVE_PTHREAD @HAVE_PTHREAD@ #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 <sys/socket.h> header file. */ /* Define to 1 if you have the <sys/socket.h> header file. */
#cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@ #cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@

View file

@ -25,10 +25,6 @@ struct sockaddr_storage
}; };
#endif #endif
#if !HAVE_SOCKLEN_T
using socklen_t = int;
#endif
#include <poll.h> #include <poll.h>
#define ARCH_NETWORK ArchNetworkBSD #define ARCH_NETWORK ArchNetworkBSD