diff options
-rw-r--r-- | src/fileio.cpp | 1 | ||||
-rw-r--r-- | src/fios.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 5ddce0570..0517ca36d 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -17,6 +17,7 @@ #include "tar_type.h" #ifdef WIN32 #include <windows.h> +# define access _taccess #elif defined(__HAIKU__) #include <Path.h> #include <storage/FindDirectory.h> diff --git a/src/fios.cpp b/src/fios.cpp index 2856c0c5a..97eb13b18 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -19,9 +19,7 @@ #include "string_func.h" #include <sys/stat.h> -#ifdef WIN32 -# define access _taccess -#else +#ifndef WIN32 # include <unistd.h> #endif /* WIN32 */ |