From ba59f39b6e3cfccbecca2bde5af0f75e33eb5b6a Mon Sep 17 00:00:00 2001 From: AlexPeshkoff Date: Wed, 11 Sep 2024 09:11:28 +0300 Subject: [PATCH] Cleanup some of unused any more checks --- configure.ac | 12 ------------ src/include/cross/android.arm64 | 9 --------- src/include/cross/android.arme | 9 --------- src/include/cross/android.x86 | 9 --------- src/include/cross/android.x86_64 | 9 --------- src/include/gen/autoconfig.h.in | 3 --- src/include/gen/autoconfig_msvc.h | 6 ------ 7 files changed, 57 deletions(-) diff --git a/configure.ac b/configure.ac index be417bdfbb..aaecb7d61a 100644 --- a/configure.ac +++ b/configure.ac @@ -1260,18 +1260,6 @@ AC_CHECK_TYPES([socklen_t],,,[#include ]) AH_BOTTOM([#ifndef HAVE_SOCKLEN_T typedef int socklen_t; #endif]) -AC_CHECK_TYPES([semun]) -if test "$ac_cv_type_semun" = "no"; then - AC_MSG_CHECKING(if sem.h defines semun) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include - #include - #include ]], [[union semun s;]])],[ac_cv_type_semun=yes; AC_DEFINE(HAVE_SEMUN) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) -fi - -AC_CHECK_TYPES([struct XDR::xdr_ops],,,[#include -#include ]) -AC_CHECK_TYPES([struct xdr_ops],,,[#include -#include ]) dnl AC_STRUCT_DIRENT_D_TYPE AC_CHECK_MEMBER([struct dirent.d_type], diff --git a/src/include/cross/android.arm64 b/src/include/cross/android.arm64 index 825570e26b..0e006ae6a4 100644 --- a/src/include/cross/android.arm64 +++ b/src/include/cross/android.arm64 @@ -326,9 +326,6 @@ /* Define to 1 if you have the `semtimedop' function. */ #define HAVE_SEMTIMEDOP 1 -/* Define to 1 if the system has the type `semun'. */ -/* #undef HAVE_SEMUN */ - /* Define to 1 if you have the `sem_init' function. */ #define HAVE_SEM_INIT 1 @@ -404,12 +401,6 @@ /* Define this if struct dirent has d_type */ #define HAVE_STRUCT_DIRENT_D_TYPE 1 -/* Define to 1 if the system has the type `struct xdr_ops'. */ -#define HAVE_STRUCT_XDR_OPS 1 - -/* Define to 1 if the system has the type `struct XDR::xdr_ops'. */ -/* #undef HAVE_STRUCT_XDR__XDR_OPS */ - /* Define to 1 if you have the `swab' function. */ #define HAVE_SWAB 1 diff --git a/src/include/cross/android.arme b/src/include/cross/android.arme index 5dcdba3a8b..7fd00ceb27 100644 --- a/src/include/cross/android.arme +++ b/src/include/cross/android.arme @@ -332,9 +332,6 @@ /* Define to 1 if you have the `semtimedop' function. */ #define HAVE_SEMTIMEDOP 1 -/* Define to 1 if the system has the type `semun'. */ -/* #undef HAVE_SEMUN */ - /* Define to 1 if you have the `sem_init' function. */ #define HAVE_SEM_INIT 1 @@ -410,12 +407,6 @@ /* Define this if struct dirent has d_type */ #define HAVE_STRUCT_DIRENT_D_TYPE 1 -/* Define to 1 if the system has the type `struct xdr_ops'. */ -#define HAVE_STRUCT_XDR_OPS 1 - -/* Define to 1 if the system has the type `struct XDR::xdr_ops'. */ -/* #undef HAVE_STRUCT_XDR__XDR_OPS */ - /* Define to 1 if you have the `swab' function. */ #define HAVE_SWAB 1 diff --git a/src/include/cross/android.x86 b/src/include/cross/android.x86 index 47503e2661..f17f1fba91 100644 --- a/src/include/cross/android.x86 +++ b/src/include/cross/android.x86 @@ -326,9 +326,6 @@ /* Define to 1 if you have the `semtimedop' function. */ #define HAVE_SEMTIMEDOP 1 -/* Define to 1 if the system has the type `semun'. */ -/* #undef HAVE_SEMUN */ - /* Define to 1 if you have the `sem_init' function. */ #define HAVE_SEM_INIT 1 @@ -404,12 +401,6 @@ /* Define this if struct dirent has d_type */ #define HAVE_STRUCT_DIRENT_D_TYPE 1 -/* Define to 1 if the system has the type `struct xdr_ops'. */ -#define HAVE_STRUCT_XDR_OPS 1 - -/* Define to 1 if the system has the type `struct XDR::xdr_ops'. */ -/* #undef HAVE_STRUCT_XDR__XDR_OPS */ - /* Define to 1 if you have the `swab' function. */ #define HAVE_SWAB 1 diff --git a/src/include/cross/android.x86_64 b/src/include/cross/android.x86_64 index cc5d8844ed..e360fb56b7 100644 --- a/src/include/cross/android.x86_64 +++ b/src/include/cross/android.x86_64 @@ -326,9 +326,6 @@ /* Define to 1 if you have the `semtimedop' function. */ #define HAVE_SEMTIMEDOP 1 -/* Define to 1 if the system has the type `semun'. */ -/* #undef HAVE_SEMUN */ - /* Define to 1 if you have the `sem_init' function. */ #define HAVE_SEM_INIT 1 @@ -404,12 +401,6 @@ /* Define this if struct dirent has d_type */ #define HAVE_STRUCT_DIRENT_D_TYPE 1 -/* Define to 1 if the system has the type `struct xdr_ops'. */ -#define HAVE_STRUCT_XDR_OPS 1 - -/* Define to 1 if the system has the type `struct XDR::xdr_ops'. */ -/* #undef HAVE_STRUCT_XDR__XDR_OPS */ - /* Define to 1 if you have the `swab' function. */ #define HAVE_SWAB 1 diff --git a/src/include/gen/autoconfig.h.in b/src/include/gen/autoconfig.h.in index 577de31075..3562ec708d 100644 --- a/src/include/gen/autoconfig.h.in +++ b/src/include/gen/autoconfig.h.in @@ -581,9 +581,6 @@ /* Define to 1 if the system has the type `caddr_t'. */ #cmakedefine HAVE_CADDR_T 1 -/* Define to 1 if the system has the type `semun'. */ -#cmakedefine HAVE_SEMUN 1 - /* Define to 1 if the system has the type `socklen_t'. */ #cmakedefine HAVE_SOCKLEN_T 1 diff --git a/src/include/gen/autoconfig_msvc.h b/src/include/gen/autoconfig_msvc.h index 1e25478c64..8d809fdf9b 100644 --- a/src/include/gen/autoconfig_msvc.h +++ b/src/include/gen/autoconfig_msvc.h @@ -252,12 +252,6 @@ /* alignment of double */ #define FB_DOUBLE_ALIGN 8 -/* Is union semun defined? */ -#undef HAVE_SEMUN - -/* Is struct xdr_ops defined? */ -#undef HAVE_STRUCT_XDR_OPS - /* Functions */ #if defined(_MSC_VER) && (_MSC_VER < 1900) #define snprintf _snprintf