https://bugs.gentoo.org/579928 From d84db34dbe39d55b4d7e868764c056689aa0793b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 19 Apr 2016 01:56:41 -0400 Subject: [PATCH] extlinux: pull in sys/sysmacros.h for major/minor/makedev These functions are defined in sys/sysmacros.h, so add the include to main.c. This is already handled correctly in mountinfo.c. Otherwise we get build failures like: main.o: In function 'find_device_sysfs': extlinux/main.c:1131: undefined reference to 'minor' Signed-off-by: Mike Frysinger --- extlinux/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extlinux/main.c b/extlinux/main.c index a7ebd49..ebff7ea 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include -- 2.7.4