summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-09-19 09:11:43 -0700
committerNathan Binkert <nate@binkert.org>2008-09-19 09:11:43 -0700
commitbefae3c0b025593657e52ba24c872184d17be132 (patch)
tree788b647c8fe6a27b5f3b14e34b122edb798fb8e3
parentea83cedcf625c35ddc6fe6b9390cdd1cca6b2039 (diff)
downloadgem5-befae3c0b025593657e52ba24c872184d17be132.tar.xz
Use the proper version of C++ headers
-rw-r--r--src/base/cprintf_formats.hh3
-rw-r--r--src/base/misc.cc1
-rw-r--r--src/base/time.cc6
-rw-r--r--src/sim/eventq.hh1
4 files changed, 7 insertions, 4 deletions
diff --git a/src/base/cprintf_formats.hh b/src/base/cprintf_formats.hh
index 4e8b2b09e..75157a540 100644
--- a/src/base/cprintf_formats.hh
+++ b/src/base/cprintf_formats.hh
@@ -31,8 +31,9 @@
#ifndef __BASE_CPRINTF_FORMATS_HH__
#define __BASE_CPRINTF_FORMATS_HH__
-#include <sstream>
+#include <cstring>
#include <ostream>
+#include <sstream>
namespace cp {
diff --git a/src/base/misc.cc b/src/base/misc.cc
index 0ab1d6041..7d284a378 100644
--- a/src/base/misc.cc
+++ b/src/base/misc.cc
@@ -28,6 +28,7 @@
* Authors: Nathan Binkert
*/
+#include <cstdlib>
#include <iostream>
#include <string>
diff --git a/src/base/time.cc b/src/base/time.cc
index 76ba355b7..a1732773e 100644
--- a/src/base/time.cc
+++ b/src/base/time.cc
@@ -28,9 +28,9 @@
* Authors: Nathan Binkert
*/
-#include <sys/types.h>
-#include <sys/time.h>
-#include <time.h>
+#include <cctype>
+#include <cstring>
+#include <ctime>
#include <iostream>
#include <string>
diff --git a/src/sim/eventq.hh b/src/sim/eventq.hh
index 2003c64ee..d172c73da 100644
--- a/src/sim/eventq.hh
+++ b/src/sim/eventq.hh
@@ -38,6 +38,7 @@
#include <algorithm>
#include <cassert>
+#include <climits>
#include <map>
#include <string>
#include <vector>