Bruno Haible <[EMAIL PROTECTED]> writes: > mingw doesn't have symlinks, therefore S_ISLNK (defined in stat-macros.h) > always returns 0. This should avoid the compilation error. canonicalize.m4 > should then also check for readlink().
But the compilation error was about ELOOP, not about whether readlink() was present. There's a readlink module that should handle readlink. I installed this, which should fix the immediate problem. Perhaps something like this would work for chdir-safer.c, too? 2006-10-21 Paul Eggert <[EMAIL PROTECTED]> * lib/canonicalize.c (ELOOP): Define if not already defined. Problem reported by Bruno Haible in <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>. --- lib/canonicalize.c 13 Sep 2006 22:38:14 -0000 1.7 +++ lib/canonicalize.c 22 Oct 2006 07:32:03 -0000 @@ -40,6 +40,9 @@ #include "xalloc.h" #include "xgetcwd.h" +#ifndef ELOOP +# define ELOOP 0 +#endif #ifndef __set_errno # define __set_errno(Val) errno = (Val) #endif