base: misc: Include cstdlib in base/misc.hh.
authorGabe Black <gabeblack@google.com>
Fri, 2 Jun 2017 00:24:42 +0000 (17:24 -0700)
committerGabe Black <gabeblack@google.com>
Sat, 3 Jun 2017 21:43:10 +0000 (21:43 +0000)
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>

src/base/misc.hh

index 58bd06be52e270d9f49d3fadc6228c58425ded96..a731c76078804b22057c0e39ede16c81a1bbe1db 100644 (file)
@@ -46,6 +46,7 @@
 #define __BASE_MISC_HH__
 
 #include <cassert>
+#include <cstdlib>
 #include <iostream>
 #include <utility>