From: Bruno Haible Date: Sun, 20 Dec 2020 14:10:05 +0000 (+0100) Subject: backupfile: Fix compilation error on native Windows (regr. 2018-10-23). X-Git-Tag: v1.0~3344 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=11355826c881b3cfb621aa1317cad58c49799eee;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index c9f4f8abed..d21388a996 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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. 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