1From 1a74985b2a404639b08882c57f3147229605dfd5 Mon Sep 17 00:00:00 2001
2From: Mike Frysinger <vapier@gentoo.org>
3Date: Tue, 19 Apr 2016 06:50:31 -0400
4Subject: [PATCH] extlinux: pull in sys/sysmacros.h for major/minor/makedev
5
6These functions are defined in sys/sysmacros.h, so add the include to
7main.c.  This is already handled correctly in mountinfo.c.  Otherwise
8we get build failures like:
9
10main.o: In function 'find_device_sysfs':
11extlinux/main.c:1131: undefined reference to 'minor'
12
13Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
15Signed-off-by: Alexander Sverdlin <alexader.sverdlin@gmail.com>
16---
17 extlinux/main.c | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/extlinux/main.c b/extlinux/main.c
21index a7ebd49..ebff7ea 100644
22--- a/extlinux/main.c
23+++ b/extlinux/main.c
24@@ -38,6 +38,7 @@
25 #include <sysexits.h>
26 #include <sys/ioctl.h>
27 #include <sys/stat.h>
28+#include <sys/sysmacros.h>
29 #include <sys/types.h>
30 #include <sys/mount.h>
31 #include <sys/vfs.h>
32--
332.10.5.GIT
34
35