summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-02-10 14:59:37 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-02-10 14:59:37 -0500
commitac6240896e26dd709dc17298ba093d32860b947f (patch)
tree825d91fe260b61329782f43c31d36bbef5fae12a /sim
parenta86a3fa525caa3f063e94a042545131c7e61d5b6 (diff)
downloadgem5-ac6240896e26dd709dc17298ba093d32860b947f.tar.xz
confused an ifdef with an if
--HG-- extra : convert_revision : 5b8e8bdff5813cf8846e66de2652246d77c97e88
Diffstat (limited to 'sim')
-rw-r--r--sim/syscall_emul.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/syscall_emul.hh b/sim/syscall_emul.hh
index a10ee297c..f55709575 100644
--- a/sim/syscall_emul.hh
+++ b/sim/syscall_emul.hh
@@ -444,7 +444,7 @@ fstat64Func(SyscallDesc *desc, int callnum, Process *process,
return -EBADF;
}
-#ifdef BSD_HOST
+#if BSD_HOST
struct stat hostBuf;
int result = fstat(process->sim_fd(fd), &hostBuf);
#else
@@ -494,7 +494,7 @@ lstat64Func(SyscallDesc *desc, int callnum, Process *process,
if (xc->mem->readString(path, xc->getSyscallArg(0)) != No_Fault)
return -EFAULT;
-#ifdef BSD_HOST
+#if BSD_HOST
struct stat hostBuf;
int result = lstat(path.c_str(), &hostBuf);
#else