summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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>