diff --git a/library/src/walkdir.c b/library/src/walkdir.c
index ffd78df..8319fc0 100644
--- a/library/src/walkdir.c
+++ b/library/src/walkdir.c
@@ -6,6 +6,7 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <dirent.h>
 #include <limits.h>
 