From: Eric Blake Date: Tue, 20 Aug 2019 16:26:17 +0000 (-0500) Subject: accept4: Fix compilation when native accept4() exists. X-Git-Tag: v1.0~4707 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=463685ee660efe468fd7e449d315608ae84f818f;p=gnulib.git accept4: Fix compilation when native accept4() exists. Reported by Richard W.M. Jones in https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html * lib/accept4.c (accept4): Match witness symbol to m4 file update. --- diff --git a/ChangeLog b/ChangeLog index d5f96f814b..6253f92218 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-08-20 Eric Blake + + accept4: Fix compilation when native accept4() exists. + Reported by Richard W.M. Jones in + https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html + * lib/accept4.c (accept4): Match witness symbol to m4 file update. + 2019-08-18 Bruno Haible Defeat -flto GCC optimization in math autoconf tests. diff --git a/lib/accept4.c b/lib/accept4.c index 4436bdc27c..c6e59c955f 100644 --- a/lib/accept4.c +++ b/lib/accept4.c @@ -37,7 +37,7 @@ accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags) { int fd; -#if HAVE_ACCEPT4 +#if HAVE_DECL_ACCEPT4 # undef accept4 /* Try the system call first, if it exists. (We may be running with a glibc that has the function but with an older kernel that lacks it.) */