Blame SOURCES/0003-extlinux-pull-in-sys-sysmacros.h-for-major-minor-mak.patch

f7dd65
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f7dd65
From: Mike Frysinger <vapier@gentoo.org>
f7dd65
Date: Tue, 19 Apr 2016 06:50:31 -0400
f7dd65
Subject: [PATCH] extlinux: pull in sys/sysmacros.h for major/minor/makedev
f7dd65
f7dd65
These functions are defined in sys/sysmacros.h, so add the include to
f7dd65
main.c.  This is already handled correctly in mountinfo.c.  Otherwise
f7dd65
we get build failures like:
f7dd65
f7dd65
main.o: In function 'find_device_sysfs':
f7dd65
extlinux/main.c:1131: undefined reference to 'minor'
f7dd65
f7dd65
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
f7dd65
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
f7dd65
---
f7dd65
 extlinux/main.c | 1 +
f7dd65
 1 file changed, 1 insertion(+)
f7dd65
f7dd65
diff --git a/extlinux/main.c b/extlinux/main.c
f7dd65
index a7ebd49a..ebff7eae 100644
f7dd65
--- a/extlinux/main.c
f7dd65
+++ b/extlinux/main.c
f7dd65
@@ -38,6 +38,7 @@
f7dd65
 #include <sysexits.h>
f7dd65
 #include <sys/ioctl.h>
f7dd65
 #include <sys/stat.h>
f7dd65
+#include <sys/sysmacros.h>
f7dd65
 #include <sys/types.h>
f7dd65
 #include <sys/mount.h>
f7dd65
 #include <sys/vfs.h>