From: Nathan Binkert Date: Thu, 6 May 2010 15:42:18 +0000 (-0700) Subject: compile: don't #include unnecessary stuff X-Git-Tag: stable_2012_02_02~1413^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f07ee128ccebec4653e85c07fbd2c1225c968b23;p=gem5.git compile: don't #include unnecessary stuff Time from base/time.hh has a name clash with Time from Ruby's TypeDefines.hh. Eventually Ruby's Time should go away, so instead of fixing this properly just try to avoid the clash. --- diff --git a/src/base/stats/visit.hh b/src/base/stats/visit.hh index c9fab19a3..f5c2fc34c 100644 --- a/src/base/stats/visit.hh +++ b/src/base/stats/visit.hh @@ -31,11 +31,6 @@ #ifndef __BASE_STATS_VISIT_HH__ #define __BASE_STATS_VISIT_HH__ -#include - -#include "base/time.hh" -#include "base/types.hh" - namespace Stats { class Info; diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index 6016ccfd9..703bbd1e0 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -41,14 +41,16 @@ /// This file defines objects used to emulate syscalls from the target /// application on the host machine. -#include -#include #ifdef __CYGWIN32__ #include // for O_BINARY #endif #include +#include #include #include +#include + +#include #include "base/chunk_generator.hh" #include "base/intmath.hh" // for RoundUp