Index: src/common/mathmisc.h
--- src/common/mathmisc.h.orig
+++ src/common/mathmisc.h
@@ -26,6 +26,8 @@
 
 #include "sysutils.h"
 
+#include <stddef.h>
+
 #ifndef M_PI
 #define M_PI 3.14159265358979323846
 #endif // M_PI
