summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/params.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 4575e677f..ee3678dc9 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -164,6 +164,7 @@ class ParamDesc(object):
return self.ptype(value)
def cxx_predecls(self, code):
+ code('#include <cstddef>')
self.ptype.cxx_predecls(code)
def swig_predecls(self, code):