summaryrefslogtreecommitdiff
path: root/arch/alpha/alpha_tru64_process.cc
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-12-19 00:02:20 -0500
committerNathan Binkert <binkertn@umich.edu>2003-12-19 00:02:20 -0500
commit255ac8372d18887dc9289b6715c700b2f5c26502 (patch)
treec61a6772e7ac242774c02c1746cc0edb1b9cc1b3 /arch/alpha/alpha_tru64_process.cc
parent888ea0dfd9caa155529b34698b2b1878d963921c (diff)
downloadgem5-255ac8372d18887dc9289b6715c700b2f5c26502.tar.xz
Make stuff build on openbsd
arch/alpha/alpha_tru64_process.cc: So, I don't know why linux uses an off_t here. I'm also not sure why linux defines an off_t to be a long Let's just use long here since it works for linux, and that's what bsd does base/inifile.cc: correct #include for OpenBSD dev/disk_image.cc: the correct type for this is streampos --HG-- extra : convert_revision : f3ac3a3b8515d66e07ffb9780d8a9e387297b6a0
Diffstat (limited to 'arch/alpha/alpha_tru64_process.cc')
-rw-r--r--arch/alpha/alpha_tru64_process.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/alpha_tru64_process.cc b/arch/alpha/alpha_tru64_process.cc
index f411e594d..ccf4d4d6c 100644
--- a/arch/alpha/alpha_tru64_process.cc
+++ b/arch/alpha/alpha_tru64_process.cc
@@ -629,7 +629,7 @@ class Tru64 {
// just pass basep through uninterpreted.
TypedBufferArg<int64_t> basep(tgt_basep);
basep.copyIn(xc->mem);
- ::off_t host_basep = (off_t)*basep;
+ long host_basep = (off_t)*basep;
int host_result = getdirentries(fd, host_buf, tgt_nbytes, &host_basep);
// check for error