summaryrefslogtreecommitdiff
path: root/lib/utils_devpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_devpath.c')
-rw-r--r--lib/utils_devpath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils_devpath.c b/lib/utils_devpath.c
index 963785a..897d83b 100644
--- a/lib/utils_devpath.c
+++ b/lib/utils_devpath.c
@@ -31,6 +31,9 @@
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
+#ifdef HAVE_SYS_SYSMACROS_H
+#include <sys/sysmacros.h> /* for major, minor */
+#endif
#include "internal.h"
static char *__lookup_dev(char *path, dev_t dev, int dir_level, const int max_level)