From 39d80bf8ebd65c9ac5e36a327216c83b6318b858 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 23 Dec 2006 15:43:03 +0000 Subject: [PATCH] Test HAVE_READLINK instead of S_ISLNK. --- ChangeLog | 7 +++++++ lib/canonicalize-lgpl.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 778f87ba0..a00a191d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-12-23 Bruno Haible + + * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of + S_ISLNK. + Needed because gnulib's sys/stat.h replacement defines S_ISLNK on + mingw. + 2006-12-22 Bruno Haible * lib/copy-file.c: Include acl.h. diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c index 7da120680..05ced1103 100644 --- a/lib/canonicalize-lgpl.c +++ b/lib/canonicalize-lgpl.c @@ -101,7 +101,7 @@ __realpath (const char *name, char *resolved) char *rpath, *dest, *extra_buf = NULL; const char *start, *end, *rpath_limit; long int path_max; -#ifdef S_ISLNK +#if HAVE_READLINK int num_links = 0; #endif @@ -231,7 +231,7 @@ __realpath (const char *name, char *resolved) #endif goto error; -#ifdef S_ISLNK +#if HAVE_READLINK if (S_ISLNK (st.st_mode)) { char *buf; -- 2.11.0