Paul Eggert wrote:
> * lib/unlink.c (rpl_unlink):
> * lib/unlinkat.c (rpl_unlinkat):
> * lib/utimens.c (lutimens) [!HAVE_LUTIMENS]:
> Prefer readlink to lstat+S_ISLNK.

This patch causes a compilation error on GNU/Hurd:

gcc -std=gnu23 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC 
-DEXEEXT=\"\" -I. -I../../gllib -I..  -DGNULIB_STRICT_CHECKING=1 
-I/home/bruno/include -Wall -fvisibility=hidden -g -O2 -MT unlinkat.o -MD -MP 
-MF $depbase.Tpo -c -o unlinkat.o ../../gllib/unlinkat.c &&\
mv -f $depbase.Tpo $depbase.Po
../../gllib/unlinkat.c: In function 'rpl_unlinkat':
../../gllib/unlinkat.c:74:51: error: 'linkbuf' undeclared (first use in this 
function)
   74 |           if (len && (readlinkat (fd, short_name, linkbuf, 1) < 0
      |                                                   ^~~~~~~
../../gllib/unlinkat.c:74:51: note: each undeclared identifier is reported only 
once for each function it appears in
make[4]: *** [Makefile:12127: unlinkat.o] Error 1

Bruno




Reply via email to