systemc: Include cstring in the tlm header file.
authorGabe Black <gabeblack@google.com>
Tue, 11 Dec 2018 07:16:19 +0000 (23:16 -0800)
committerGabe Black <gabeblack@google.com>
Wed, 9 Jan 2019 01:33:44 +0000 (01:33 +0000)
A lot of TLM implementation assumes the string functions (memcpy,
memset, etc) are available, but don't include cstring. Lets do that
for them to avoid having to fix up a lot of places.

Change-Id: I1f26d3a227fe2cefc2613e24cbb0333216e46ee9
Reviewed-on: https://gem5-review.googlesource.com/c/15060
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com>

src/systemc/ext/tlm

index 3e671f73796be97823479340b894e8605f5c600a..1516151038f75c535a67cb44e579a269078bc09c 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef __SYSTEMC_EXT_TLM__
 #define __SYSTEMC_EXT_TLM__
 
+#include <cstring>
 #include <systemc>    // main SystemC header
 
 #include "tlm_core/2/version.h"