summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-04-21 19:11:38 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-04-21 19:11:38 -0400
commit53ba34391ff7b82dd143c7cce0d31bf56882d5ae (patch)
tree9dd96b37c02907c6ab8e9fd34d89517980a2259b /src/base
parente8ace88e897a4b0f61526ac0fe88740d337f0509 (diff)
downloadgem5-53ba34391ff7b82dd143c7cce0d31bf56882d5ae.tar.xz
fixes for solaris compile
--HG-- extra : convert_revision : c82a62a61650e3700d237da917c453e5a9676320
Diffstat (limited to 'src/base')
-rw-r--r--src/base/random.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/random.cc b/src/base/random.cc
index 5390ceb46..8a2e3c1c0 100644
--- a/src/base/random.cc
+++ b/src/base/random.cc
@@ -37,6 +37,7 @@
#include <cstdlib>
#include <cmath>
+#include "base/fenv.hh"
#include "base/random.hh"
using namespace std;
@@ -59,7 +60,7 @@ m5round(double r)
#if defined(__sun)
double val;
int oldrnd = m5_fegetround();
- m5_fesetround(M5_FP_TONEAREST);
+ m5_fesetround(M5_FE_TONEAREST);
val = rint(r);
m5_fesetround(oldrnd);
return val;