diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-11-02 02:11:15 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-11-02 02:11:15 -0400 |
commit | 710f3ca3e1a8f6863a19c420e9b9e879bd30b239 (patch) | |
tree | 0a77e09db3eb28f4df79228dd6294c4739f5ba31 /src/sim | |
parent | 6db36c331dbff076f31980fc0e611d495ac95885 (diff) | |
download | gem5-710f3ca3e1a8f6863a19c420e9b9e879bd30b239.tar.xz |
SE: fix stat64 syscall on os x
--HG--
extra : convert_revision : 40b62ef73d8e408cdd35b22147860f33533db57f
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/syscall_emul.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index e2d13067c..abab356df 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -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; |