Fix window build (from r421 changes)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@433 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2008-12-27 22:33:25 +00:00
parent c4102e4eb7
commit 7f9a9d81c1

View File

@ -43,7 +43,12 @@ char *realpath(const char *_path, char *resolved_path)
if (chdir(path)) {
if (errno == ENOTDIR) {
#if defined(__WIN32__)
// No symbolic links and no readlink()
l = -1;
#else
l = readlink(path, lnk, PATH_MAX);
#endif
if (!(tmp = sep(path))) {
resolved_path = NULL;
goto abort;