[ccache] Implemented x_realpath on windows and make master compile on windows again.
Patrick von Reth
patrick.vonreth at gmail.com
Tue Jul 31 08:36:31 MDT 2012
diff --git a/util.c b/util.c
index 70d72ae..762aa43 100644
@@ -955,7 +955,7 @@ x_realpath(const char *path)
HANDLE pathHandle = CreateFile(path, GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
GetFinalPathNameByHandle(pathHandle, ret, maxlen,
- p = x_strdup(ret+4);// strip the \\?\ from the file name
+ p = ret+4;// strip the \\?\ from the file name
/* yes, there are such systems. This replacement relies on
the fact that when we call x_realpath we only care about
would probably be better
On 31 July 2012 15:00, Patrick von Reth <patrick.vonreth at gmail.com> wrote:
> This will also increase the required mingw version.
> I have build it with mingw-w64 crt and headers version 3b but 2.0 should
> be enough.
> On 31 July 2012 14:58, Patrick von Reth <patrick.vonreth at gmail.com> wrote:
>> I implemented x_realpath on windows to make the curent version compile on
>> windows again.
>> But with the patch you will nead atleast Windows Wista, it won't work on
>> windows XP anymore.
>> Thats also the reason why you need to put
>> #define _WIN32_WINNT 0x0600
>> In the config.h
>> I tried to add
>> case $host in
>> *mingw32* | *cygwin* | *wince* | *mingwce*)
>> We require at least Windows Vista)
>> to the configure.ac but always got configure: error: cannot run /bin/sh /q/ccache-src/config.sub maybe you can find a better way.
More information about the ccache