]> Savannah Git Hosting - gnulib.git/commitdiff
getcwd: Fix compilation error in C23 mode.
authorBruno Haible <bruno@clisp.org>
Thu, 9 Feb 2023 11:53:22 +0000 (12:53 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 9 Feb 2023 11:53:22 +0000 (12:53 +0100)
* lib/getcwd.c: Include <stdio.h>.

ChangeLog
lib/getcwd.c

index 9b7a6fee50539040b2bb78a15b70da50490a9c15..f9b21e5c42bdcb95a4a0de591b2a7f3aab00ce17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-09  Bruno Haible  <bruno@clisp.org>
+
+       getcwd: Fix compilation error in C23 mode.
+       * lib/getcwd.c: Include <stdio.h>.
+
 2023-02-08  Bruno Haible  <bruno@clisp.org>
 
        x-to-1: Accept additional help2man arguments.
index 5201cd06b595cead0304423c9d652586befacaa9..0530630c43f654a879ca04df281ae45490124e01 100644 (file)
@@ -16,6 +16,7 @@
 
 #if !_LIBC
 # include <config.h>
+# include <stdio.h>
 # include <unistd.h>
 # include "pathmax.h"
 #else