0
0
mirror of https://github.com/openwrt/packages.git synced 2025-08-12 10:03:00 +00:00
Files
packages/net/dante/patches/100-fix-autoconf-checkerrno.patch
Rosen Penev 0a5786e15e dante: update to 1.4.4
Refreshed patches.

Use libtirpc to fix missing bindresvport. It's not actually used.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2025-01-06 18:50:24 -08:00

41 lines
1.3 KiB
Diff

--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1097,6 +1097,8 @@ changequote([, ])dnl
dnl test function that tries to determine if a specified errno error exists
m4_define([checkerrno],
[AC_MSG_CHECKING(for errno symbol $3)
+ saved_cppflags="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS -P"
AC_PREPROC_IFELSE(
[AC_LANG_PROGRAM([[#include <errno.h>]],
[[
@@ -1108,7 +1110,8 @@ errnoval: $3
[AC_MSG_RESULT([OK])
$1="$$1 $3"
cat conftest.i | grep errnoval: >>$2],
- [AC_MSG_RESULT([no])])])
+ [AC_MSG_RESULT([no])])
+ CPPFLAGS="$saved_cppflags"])
AC_DEFUN([L_CHECKERRNO],
[checkerrno($@)])
@@ -1118,6 +1121,8 @@ dnl error exists
dnl test function that tries to determine if a specified errno error exists
m4_define([checkgaierror],
[AC_MSG_CHECKING(for getaddrinfo() error $3)
+ saved_cppflags="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS -P"
AC_PREPROC_IFELSE(
[AC_LANG_PROGRAM([[
#include <sys/types.h>
@@ -1133,7 +1138,8 @@ gaierrval: $3
$1="$$1 $3"
AC_DEFINE(HAVE_ERR_$3, 1, [$3 gai error found])
cat conftest.i | grep gaierrval: >>$2],
- [AC_MSG_RESULT([no])])])
+ [AC_MSG_RESULT([no])])
+ CPPFLAGS="$saved_cppflags"])
AC_DEFUN([L_CHECKGAIERROR],
[checkgaierror($@)])