From 85b393f9c1d12ad882e1e4231386bab3b001f6c9 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 1 Jun 2017 17:24:42 -0700 Subject: 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 Maintainer: Andreas Sandberg --- src/base/misc.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/base') 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 +#include #include #include -- cgit v1.2.3