--- a/gl/lib/mountlist.c
+++ b/gl/lib/mountlist.c
@@ -24,7 +24,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
-
+#include <sys/sysmacros.h>
 #include "xalloc.h"
 
 #include <errno.h>
