diff options
author | Gabe Black <gabeblack@google.com> | 2017-06-01 17:24:42 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2017-06-03 21:43:10 +0000 |
commit | 85b393f9c1d12ad882e1e4231386bab3b001f6c9 (patch) | |
tree | a13cd1c2209ef9b3108a26ffb238f1021b9d47f8 /src | |
parent | 53679854bea00ba57d1a8c2f626cdd60364c39c3 (diff) | |
download | gem5-85b393f9c1d12ad882e1e4231386bab3b001f6c9.tar.xz |
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
Reviewed-on: https://gem5-review.googlesource.com/3601
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/base/misc.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/misc.hh b/src/base/misc.hh index 58bd06be5..a731c7607 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> |