diff --git a/src/realpath.c b/src/realpath.c index 361f4317..16b3a829 100644 --- a/src/realpath.c +++ b/src/realpath.c @@ -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 *)""; diff --git a/src/setup.h b/src/setup.h index 762a617b..369ac7ce 100644 --- a/src/setup.h +++ b/src/setup.h @@ -73,8 +73,6 @@ void Set_config_directory(const char * program_dir, char * config_dir); /// Name of the subdirectory containing scripts #if defined (__MINT__) #define SCRIPTS_SUBDIRECTORY "SCRIPTS" -#elif defined(__AROS__) - #define SCRIPTS_SUBDIRECTORY "share/grafx2/scripts" #else #define SCRIPTS_SUBDIRECTORY "scripts" #endif