diff --git a/steam-runtime-tools/graphics.c b/steam-runtime-tools/graphics.c
index a5b96a4c25f633c7c2abd2d5442ed17ffd02ee6d..05fd8f9e50d756249c3b093592abb4f6aa6dcefe 100644
--- a/steam-runtime-tools/graphics.c
+++ b/steam-runtime-tools/graphics.c
@@ -30,6 +30,8 @@
 #include "steam-runtime-tools/graphics-internal.h"
 #include "steam-runtime-tools/utils-internal.h"
 
+#include <string.h>
+
 #include <json-glib/json-glib.h>
 
 /**