]> Savannah Git Hosting - gnulib.git/commitdiff
accept4: Fix compilation when native accept4() exists.
authorEric Blake <eblake@redhat.com>
Tue, 20 Aug 2019 16:26:17 +0000 (11:26 -0500)
committerEric Blake <eblake@redhat.com>
Tue, 20 Aug 2019 16:26:17 +0000 (11:26 -0500)
Reported by Richard W.M. Jones <rjones@redhat.com> in
https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
* lib/accept4.c (accept4): Match witness symbol to m4 file update.

ChangeLog
lib/accept4.c

index d5f96f814b64327d2d15f4611804d328584258eb..6253f922189ef0a11854306ae927f962f4ceca92 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-08-20  Eric Blake  <eblake@redhat.com>
+
+       accept4: Fix compilation when native accept4() exists.
+       Reported by Richard W.M. Jones <rjones@redhat.com> 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  <bruno@clisp.org>
 
        Defeat -flto GCC optimization in math autoconf tests.
index 4436bdc27ccecda18130268150642247b68a365e..c6e59c955f3c6acc9d74bc77187c28dca756155a 100644 (file)
@@ -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.)  */