Fixed RealPath() for AROS. Because we are building GrafX2 without Unix support we must use the "Amiga" way of defining the current path.
Reverted setup.h. I had drawn wrong conclusions because of the buggy RealPath(). git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1978 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -47,7 +47,12 @@
|
||||
// If resolved_path is null, it is allocated.
|
||||
char *Realpath(const char *_path, char *resolved_path)
|
||||
{
|
||||
int fd = open(".", O_RDONLY), l;
|
||||
#if defined(__AROS__)
|
||||
int fd = open("", O_RDONLY); // GrafX2 is compiled without Unix support
|
||||
#else
|
||||
int fd = open(".", O_RDONLY);
|
||||
#endif
|
||||
int l;
|
||||
char current_dir_path[PATH_MAX];
|
||||
char path[PATH_MAX], lnk[PATH_MAX], *tmp = (char *)"";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user