From: Joel Rosdahl Date: Mon, 2 Aug 2010 20:06:30 +0000 (+0200) Subject: No need to compile x_readlink on win32 X-Git-Tag: v3.1~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb19e1f305dde90ec1e0ea0be845a4de196127ff;p=thirdparty%2Fccache.git No need to compile x_readlink on win32 --- 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