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:
parent
c4102e4eb7
commit
7f9a9d81c1
@ -43,7 +43,12 @@ char *realpath(const char *_path, char *resolved_path)
|
|||||||
|
|
||||||
if (chdir(path)) {
|
if (chdir(path)) {
|
||||||
if (errno == ENOTDIR) {
|
if (errno == ENOTDIR) {
|
||||||
|
#if defined(__WIN32__)
|
||||||
|
// No symbolic links and no readlink()
|
||||||
|
l = -1;
|
||||||
|
#else
|
||||||
l = readlink(path, lnk, PATH_MAX);
|
l = readlink(path, lnk, PATH_MAX);
|
||||||
|
#endif
|
||||||
if (!(tmp = sep(path))) {
|
if (!(tmp = sep(path))) {
|
||||||
resolved_path = NULL;
|
resolved_path = NULL;
|
||||||
goto abort;
|
goto abort;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user