]> Savannah Git Hosting - gnulib.git/commitdiff
dirfd: Fix bogus override (regression 2023-04-26).
authorBruno Haible <bruno@clisp.org>
Fri, 5 May 2023 10:02:49 +0000 (12:02 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 5 May 2023 10:02:49 +0000 (12:02 +0200)
Reported by Bjarni Ingi Gislason <bjarniig@simnet.is> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-05/msg00040.html>.

* m4/dirfd.m4 (gl_FUNC_DIRFD): Fix mistake in last change.

ChangeLog
m4/dirfd.m4

index aaffe12fc19a82d5535f2d40ded61187fb57c358..5f01a525356589854efb933b9cdb55d2f464931d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-05-05  Bruno Haible  <bruno@clisp.org>
+
+       dirfd: Fix bogus override (regression 2023-04-26).
+       Reported by Bjarni Ingi Gislason <bjarniig@simnet.is> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2023-05/msg00040.html>.
+       * m4/dirfd.m4 (gl_FUNC_DIRFD): Fix mistake in last change.
+
 2023-05-04  Bruno Haible  <bruno@clisp.org>
 
        c32swidth: Add tests.
index d1ee2c7f61defeed4bc320a713c05f6b265f8d60..7968b1287cef7cfa93923cdefb203ee3b814d41c 100644 (file)
@@ -1,4 +1,4 @@
-# serial 27   -*- Autoconf -*-
+# serial 28   -*- Autoconf -*-
 
 dnl Find out how to get the file descriptor associated with an open DIR*.
 
@@ -40,10 +40,6 @@ AC_DEFUN([gl_FUNC_DIRFD],
     HAVE_DIRFD=0
   else
     HAVE_DIRFD=1
-    dnl Replace only if the system declares dirfd already.
-    if test $ac_cv_have_decl_dirfd = yes; then
-      REPLACE_DIRFD=1
-    fi
     dnl Replace dirfd() on native Windows, to support fdopendir().
     AC_REQUIRE([gl_DIRENT_DIR])
     if test $DIR_HAS_FD_MEMBER = 0; then