From: Gabe Black Date: Fri, 2 Jun 2017 00:24:42 +0000 (-0700) Subject: base: misc: Include cstdlib in base/misc.hh. X-Git-Tag: v19.0.0.0~2759 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85b393f9c1d12ad882e1e4231386bab3b001f6c9;p=gem5.git 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 --- 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