]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/syslinux-6.03-sysmacros.patch
squid: Update to 4.4 (stable)
[ipfire-2.x.git] / src / patches / syslinux-6.03-sysmacros.patch
1 https://bugs.gentoo.org/579928
2
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
7
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:
11
12 main.o: In function 'find_device_sysfs':
13 extlinux/main.c:1131: undefined reference to 'minor'
14
15 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 ---
17 extlinux/main.c | 1 +
18 1 file changed, 1 insertion(+)
19
20 diff --git a/extlinux/main.c b/extlinux/main.c
21 index 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 --
33 2.7.4
34