summaryrefslogtreecommitdiff
path: root/lib/utils_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_loop.c')
-rw-r--r--lib/utils_loop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils_loop.c b/lib/utils_loop.c
index d7b03a1..640d95b 100644
--- a/lib/utils_loop.c
+++ b/lib/utils_loop.c
@@ -29,6 +29,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/loop.h>
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h> /* for major, minor */
+#endif
#include "utils_loop.h"