]> Savannah Git Hosting - gnulib.git/commitdiff
canonicalize-lgpl: accommodate picky cpp
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Dec 2020 19:58:38 +0000 (11:58 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 28 Dec 2020 20:56:47 +0000 (12:56 -0800)
* lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
case preprocessor is picky.  Reported by Adhemerval Zanella in:
https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html

ChangeLog
lib/canonicalize-lgpl.c

index 0428619c179fa6fa8e8e5dbf51459cc84fb2f724..9a91eda92da41c12a217678dc04b7057ba30b544 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
 
+       canonicalize-lgpl: accommodate picky cpp
+       * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
+       case preprocessor is picky.  Reported by Adhemerval Zanella in:
+       https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
+
        canonicalize: simplify via scratch_buffer_dupfree
        * config/srclist.txt: Adjust accordingly.
        * lib/canonicalize-lgpl.c (realpath_stk):
index 7ac5d412dae824fec3fa79902fcf1aecc4e4a661..332b5bab43896dc363b4fa5b1e2c1e05cf985d97 100644 (file)
@@ -98,7 +98,7 @@
 # define FACCESSAT_NEVER_EOVERFLOWS false
 #endif
 
-#if !FUNC_REALPATH_WORKS || defined _LIBC
+#if defined _LIBC || !FUNC_REALPATH_WORKS
 
 /* Return true if FILE's existence can be shown, false (setting errno)
    otherwise.  Follow symbolic links.  */