diff --git a/thirdparty/SZ/sz/src/sz_double.c b/thirdparty/SZ/sz/src/sz_double.c
index d8bf87590de4884dd29df4c8f86115a3618dd434..ac70c15d440208336128cfe1f7ae954c2a42a2d0 100644
--- a/thirdparty/SZ/sz/src/sz_double.c
+++ b/thirdparty/SZ/sz/src/sz_double.c
@@ -10,6 +10,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stddef.h>
 #include <string.h>
 #include <unistd.h>
 #include <math.h>
diff --git a/thirdparty/SZ/sz/src/sz_float.c b/thirdparty/SZ/sz/src/sz_float.c
index 74d7f20e8e9acde6150c1608fdae0b5ef31cec4f..365f99aa0876016e26753ee2070ab8e0d8632758 100644
--- a/thirdparty/SZ/sz/src/sz_float.c
+++ b/thirdparty/SZ/sz/src/sz_float.c
@@ -10,6 +10,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stddef.h>
 #include <string.h>
 #include <unistd.h>
 #include <math.h>