From: Bruno Haible Date: Sat, 29 Jun 2019 00:02:10 +0000 (+0200) Subject: accept4: Fix compilation error on OpenIndiana. X-Git-Tag: v1.0~4818 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e597d4b8e50f57cfb72ee4fb8ee75c48ddbec97f;p=gnulib.git accept4: Fix compilation error on OpenIndiana. Reported by Michal Nowak via Mark H Weaver . * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not whether it exists as a function. --- diff --git a/ChangeLog b/ChangeLog index 5ae108e25c..e808c30a06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2019-06-28 Bruno Haible + + accept4: Fix compilation error on OpenIndiana. + Reported by Michal Nowak + via Mark H Weaver . + * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not + whether it exists as a function. + 2019-06-26 Paul Eggert strverscmp: sync from glibc diff --git a/m4/accept4.m4 b/m4/accept4.m4 index b38ce30249..9b976fb72b 100644 --- a/m4/accept4.m4 +++ b/m4/accept4.m4 @@ -1,4 +1,4 @@ -# accept4.m4 serial 2 +# accept4.m4 serial 3 dnl Copyright (C) 2009-2019 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,8 +11,11 @@ AC_DEFUN([gl_FUNC_ACCEPT4], dnl Persuade glibc to declare accept4(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - AC_CHECK_FUNCS_ONCE([accept4]) - if test $ac_cv_func_accept4 != yes; then + AC_CHECK_DECLS([accept4], , , [[ +#include +#include +]]) + if test $ac_cv_have_decl_accept4 != yes; then HAVE_ACCEPT4=0 fi ])