diff --git a/src/common/bitstring.c b/src/common/bitstring.c
index bfdb40c96816a4b35fdb401c8d58a63d8cce4f52..4dfc7634b054f962920fae330336b420f23c69a3 100644
--- a/src/common/bitstring.c
+++ b/src/common/bitstring.c
@@ -48,6 +48,7 @@
 #include "src/common/bitstring.h"
 #include "src/common/log.h"
 #include "src/common/macros.h"
+#include "src/common/xassert.h"
 #include "src/common/xmalloc.h"
 #include "src/common/xstring.h"