1 https://bugs.gentoo.org/579928
3 From d84db34dbe39d55b4d7e868764c056689aa0793b Mon Sep 17 00:00:00 2001
4 From: Mike Frysinger <vapier@gentoo.org>
5 Date: Tue, 19 Apr 2016 01:56:41 -0400
6 Subject: [PATCH] extlinux: pull in sys/sysmacros.h for major/minor/makedev
8 These functions are defined in sys/sysmacros.h, so add the include to
9 main.c. This is already handled correctly in mountinfo.c. Otherwise
10 we get build failures like:
12 main.o: In function 'find_device_sysfs':
13 extlinux/main.c:1131: undefined reference to 'minor'
15 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
18 1 file changed, 1 insertion(+)
20 diff --git a/extlinux/main.c b/extlinux/main.c
21 index a7ebd49..ebff7ea 100644
26 #include <sys/ioctl.h>
28 +#include <sys/sysmacros.h>
29 #include <sys/types.h>
30 #include <sys/mount.h>