Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/3601

Change subject: base: misc: Include cstdlib in base/misc.hh.
......................................................................

base: misc: Include cstdlib in base/misc.hh.

Some of the macros, notably panic, uses exit(). Callers shouldn't have to
know that or have coincidentally included cstdlib, the provider of exit,
themselves.

Change-Id: I634602ed1795dcc8897b4bddb1167c96763acc18
---
M src/base/misc.hh
1 file changed, 1 insertion(+), 0 deletions(-)



diff --git a/src/base/misc.hh b/src/base/misc.hh
index 58bd06b..a731c76 100644
--- a/src/base/misc.hh
+++ b/src/base/misc.hh
@@ -46,6 +46,7 @@
 #define __BASE_MISC_HH__

 #include <cassert>
+#include <cstdlib>
 #include <iostream>
 #include <utility>


--
To view, visit https://gem5-review.googlesource.com/3601
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I634602ed1795dcc8897b4bddb1167c96763acc18
Gerrit-Change-Number: 3601
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to