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

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