Remove last deprecated macros from ncat/configure.ac

This commit is contained in:
dmiller 2026-08-14 17:16:18 +00:00
parent 6680c9343f
commit 12963cfefe
3 changed files with 1 additions and 38 deletions

View file

@ -159,9 +159,6 @@
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
/* Define to the type of arg 1 for `select'. */
#undef SELECT_TYPE_ARG1

33
ncat/configure vendored
View file

@ -4614,39 +4614,6 @@ printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
rm -rf conftest*
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
printf %s "checking return type of signal handlers... " >&6; }
if test ${ac_cv_type_signal+y}
then :
printf %s "(cached) " >&6
else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
#include <signal.h>
int
main (void)
{
return *(signal (0, 0)) (0) == 1;
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
ac_cv_type_signal=int
else $as_nop
ac_cv_type_signal=void
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
printf "%s\n" "$ac_cv_type_signal" >&6; }
printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
if test "x$ac_cv_func_vprintf" = xno

View file

@ -4,7 +4,7 @@
AC_PREREQ(2.59)
AC_INIT(ncat_main.c)
AC_CONFIG_HEADER(config.h)
AC_CONFIG_HEADERS([config.h])
m4_include([../acinclude.m4])
m4_include([../m4/ax_check_compile_flag.m4])
@ -49,7 +49,6 @@ AC_C_CONST
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_SEARCH_LIBS(setsockopt, socket)
# Ncat does not call gethostbyname directly, but some of the libraries