bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH v2 4/6] stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ


From: Paul Eggert
Subject: Re: [PATCH v2 4/6] stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970]
Date: Mon, 28 Dec 2020 13:07:54 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 12/28/20 5:59 AM, Adhemerval Zanella wrote:
It sync with gnulib version bbaba6ce5 with the following difference
require fix a glibc build:

--- stdlib/canonicalize.c
+++ lib/canonicalize-lgpl.c
@@ -52,7 +52,6 @@
  # endif
  # define GCC_LINT 1
  # define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
-# define FUNC_REALPATH_WORKS 1

I hope a better fix for that problem is this change:

-#if !FUNC_REALPATH_WORKS || defined _LIBC
+#if defined _LIBC || !FUNC_REALPATH_WORKS

which I just installed into Gnulib <https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=18bc1ab1feca304d2a357407af8e29b3354496f2>. This sort of technique works in the "# if defined _LIBC || HAVE_FACCESSAT" line later on.



reply via email to

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