[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: canonicalize on mingw
From: |
Paul Eggert |
Subject: |
Re: canonicalize on mingw |
Date: |
Sun, 22 Oct 2006 00:34:26 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Bruno Haible <address@hidden> 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 <address@hidden>
* 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