From eb19e1f305dde90ec1e0ea0be845a4de196127ff Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Mon, 2 Aug 2010 22:06:30 +0200 Subject: [PATCH] No need to compile x_readlink on win32 --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index a0c10766c..8e4ecbd6c 100644 --- a/util.c +++ b/util.c @@ -777,7 +777,6 @@ value_units(const char *s) return (size_t)v; } - #ifndef _WIN32 /* a sane realpath() function, trying to cope with stupid path limits and @@ -1118,6 +1117,7 @@ x_rename(const char *oldpath, const char *newpath) return rename(oldpath, newpath); } +#ifndef _WIN32 /* Like readlink() but returns the string or NULL on failure. Caller frees. */ char * x_readlink(const char *path) @@ -1143,3 +1143,4 @@ x_readlink(const char *path) buf[len] = 0; return buf; } +#endif -- 2.47.3