]> 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>
Fri, 10 Feb 2023 03:21:23 +0000 (04:21 +0100)
* lib/getcwd.c: Include <stdio.h>.

ChangeLog
lib/getcwd.c

index e44b0ebd40bb62b0ec5c3efd9b23aed1ca4fc599..051c230b02339d3ea2b20ad3a32ed08a8effe694 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-07  Bruno Haible  <bruno@clisp.org>
 
        Fix a copyright header - module license mismatch.
index 113332f1c99943ac4761bb3479b0c80387f6ca15..88e5985e2714856a14ec7988fdb548a335ad98bb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2022 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2023 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This file is free software: you can redistribute it and/or modify
@@ -16,6 +16,7 @@
 
 #if !_LIBC
 # include <config.h>
+# include <stdio.h>
 # include <unistd.h>
 # include "pathmax.h"
 #else