From 11355826c881b3cfb621aa1317cad58c49799eee Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 20 Dec 2020 15:10:05 +0100 Subject: [PATCH] backupfile: Fix compilation error on native Windows (regr. 2018-10-23). Reported by Adrian Ebeling in . * lib/backupfile.c (fpathconf): Define fallback, like for pathconf. --- ChangeLog | 7 +++++++ lib/backupfile.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index c9f4f8abed..d21388a996 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2020-12-20 Bruno Haible + backupfile: Fix compilation error on native Windows (regr. 2018-10-23). + Reported by Adrian Ebeling in + . + * lib/backupfile.c (fpathconf): Define fallback, like for pathconf. + +2020-12-20 Bruno Haible + float: Fix compilation error when gnulib's float.h exists twice. Reported by Santiago Vila . * lib/float.in.h (GNULIB_defined_long_double_union): New macro. diff --git a/lib/backupfile.c b/lib/backupfile.c index dfc29e8486..02ba054e4a 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -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 -- 2.11.4.GIT