]> Savannah Git Hosting - gnulib.git/commitdiff
getcwd, getcwd-lgpl: Fix configure test.
authorBruno Haible <bruno@clisp.org>
Mon, 12 Feb 2024 11:44:08 +0000 (12:44 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Feb 2024 11:44:08 +0000 (12:44 +0100)
* m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Don't redeclare getcwd().

ChangeLog
m4/getcwd.m4

index 7e357c41242535d9d2c3043561e4d4af536efff1..dfaef75fdcb2043f293b73aed8dff5817da691af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-02-12  Bruno Haible  <bruno@clisp.org>
+
+       getcwd, getcwd-lgpl: Fix configure test.
+       * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Don't redeclare getcwd().
+
 2024-02-12  Florian Weimer  <fweimer@redhat.com>
 
        pthread_mutex_timedlock, pthread-spin: Fix configure test.
index 558a032f1b688e8c3e34129e26fef25687fd94b0..ed3d7b610a440f3ae87c5a094f8bd168eafdf767 100644 (file)
@@ -6,7 +6,7 @@
 # with or without modifications, as long as this notice is preserved.
 
 # Written by Paul Eggert.
-# serial 21
+# serial 22
 
 AC_DEFUN([gl_FUNC_GETCWD_NULL],
   [
@@ -21,11 +21,8 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL],
 #        else /* on Windows with MSVC */
 #         include <direct.h>
 #        endif
-         ]GL_MDA_DEFINES[
-#        ifndef getcwd
-         char *getcwd ();
-#        endif
-]], [[
+         ]GL_MDA_DEFINES],
+         [[
 #if defined _WIN32 && ! defined __CYGWIN__
 /* mingw cwd does not start with '/', but _getcwd does allocate.
    However, mingw fails to honor non-zero size.  */