SE: fix stat64 syscall on os x
--HG-- extra : convert_revision : 40b62ef73d8e408cdd35b22147860f33533db57f
This commit is contained in:
parent
6db36c331d
commit
710f3ca3e1
1 changed files with 5 additions and 0 deletions
|
@ -618,8 +618,13 @@ stat64Func(SyscallDesc *desc, int callnum, LiveProcess *process,
|
|||
// Adjust path for current working directory
|
||||
path = process->fullPath(path);
|
||||
|
||||
#if NO_STAT64
|
||||
struct stat hostBuf;
|
||||
int result = stat(path.c_str(), &hostBuf);
|
||||
#else
|
||||
struct stat64 hostBuf;
|
||||
int result = stat64(path.c_str(), &hostBuf);
|
||||
#endif
|
||||
|
||||
if (result < 0)
|
||||
return -errno;
|
||||
|
|
Loading…
Reference in a new issue