bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backupfile.c missing feature check for fpathconf


From: Bruno Haible
Subject: Re: backupfile.c missing feature check for fpathconf
Date: Sun, 20 Dec 2020 15:13:50 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

Adrian Ebeling wrote:
> I'm talking about systems that have *neither* pathconf() nor fpathconf().

Oh, I see. So, you mean native Windows.

Fixed:


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.

diff --git a/lib/backupfile.c b/lib/backupfile.c
index dfc29e8..02ba054 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]