]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
No need to compile x_readlink on win32
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 2 Aug 2010 20:06:30 +0000 (22:06 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 2 Aug 2010 20:06:30 +0000 (22:06 +0200)
util.c

diff --git a/util.c b/util.c
index a0c10766c004c541daaa54a863283d297ff0c5fb..8e4ecbd6ca7def711dc814e4702dd2d6a3dc8172 100644 (file)
--- 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