]> Savannah Git Hosting - gnulib.git/commitdiff
backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
authorBruno Haible <bruno@clisp.org>
Sun, 20 Dec 2020 14:10:05 +0000 (15:10 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Dec 2020 14:11:51 +0000 (15:11 +0100)
Reported by Adrian Ebeling <adrianebeling@gmx.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.

* lib/backupfile.c (fpathconf): Define fallback, like for pathconf.

ChangeLog
lib/backupfile.c

index c9f4f8abed59d0b6ff23d0573db5d5f7c02f255d..d21388a996f4c82be5a7aeef419f40d121258929 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-12-20  Bruno Haible  <bruno@clisp.org>
+
+       backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
+       Reported by Adrian Ebeling <adrianebeling@gmx.de> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
+       * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
+
 2020-12-20  Bruno Haible  <bruno@clisp.org>
 
        float: Fix compilation error when gnulib's float.h exists twice.
index dfc29e84863d16f28ccc3813ca591a7399e903a7..02ba054e4ad0d1ead1fd3dfdf2d0860c845f4404 100644 (file)
@@ -43,6 +43,7 @@
 
 #if ! (HAVE_PATHCONF && defined _PC_NAME_MAX)
 # define pathconf(file, option) (errno = -1)
+# define fpathconf(fd, option) (errno = -1)
 #endif
 
 #ifndef _POSIX_NAME_MAX