diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-12-19 00:02:20 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-12-19 00:02:20 -0500 |
commit | 255ac8372d18887dc9289b6715c700b2f5c26502 (patch) | |
tree | c61a6772e7ac242774c02c1746cc0edb1b9cc1b3 /base/inifile.cc | |
parent | 888ea0dfd9caa155529b34698b2b1878d963921c (diff) | |
download | gem5-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 'base/inifile.cc')
-rw-r--r-- | base/inifile.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/inifile.cc b/base/inifile.cc index 2717a534d..74d47204e 100644 --- a/base/inifile.cc +++ b/base/inifile.cc @@ -35,6 +35,9 @@ #include <sys/types.h> #include <sys/wait.h> +#if defined(__OpenBSD__) +#include <libgen.h> +#endif #include <stdio.h> #include <stdlib.h> #include <unistd.h> |