mirror of
https://github.com/digarok/gsplus.git
synced 2024-11-27 12:50:04 +00:00
fix up linux compile errors
This commit is contained in:
parent
91e7a1e98e
commit
008aafc490
@ -10,6 +10,7 @@
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "defc.h"
|
||||
#include "gsos.h"
|
||||
@ -21,6 +22,11 @@
|
||||
#include <sys/paths.h>
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
#include <sys/xattr.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
@ -151,6 +157,8 @@ static word32 map_errno() {
|
||||
return pathNotFound;
|
||||
case ENOMEM:
|
||||
return outOfMem;
|
||||
case EEXIST:
|
||||
return dupPathname;
|
||||
default:
|
||||
return drvrIOError;
|
||||
}
|
||||
@ -533,7 +541,7 @@ static word32 set_file_info(const char *path, struct file_info *fi) {
|
||||
if (i) ok = setattrlist(path, &list, dates, i * sizeof(struct timespec), 0);
|
||||
return 0;
|
||||
}
|
||||
#elif definde _WIN32
|
||||
#elif defined _WIN32
|
||||
|
||||
|
||||
static void UnixTimeToFileTime(time_t t, LPFILETIME pft)
|
||||
|
Loading…
Reference in New Issue
Block a user