diff --git a/lib/util/ttbl.c b/lib/util/ttbl.c
index 12bf5c7..f98ebed 100644
--- a/lib/util/ttbl.c
+++ b/lib/util/ttbl.c
@@ -28,6 +28,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include "hidrd/util/buf.h"
 #include "hidrd/util/ttbl.h"
 
