aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-19 06:50:31 -0400
committerGene Cumm <gene.cumm@gmail.com>2016-04-23 21:14:06 -0400
commit1a74985b2a404639b08882c57f3147229605dfd5 (patch)
treeac91fc1963bca7466a4e99256ea178a7b22ce087 /extlinux
parenta615768ccafaffc444a808bffc0479ab7dc9efee (diff)
downloadsyslinux-1a74985b2a404639b08882c57f3147229605dfd5.tar.gz
syslinux-1a74985b2a404639b08882c57f3147229605dfd5.tar.xz
syslinux-1a74985b2a404639b08882c57f3147229605dfd5.zip
extlinux: pull in sys/sysmacros.h for major/minor/makedev
These functions are defined in sys/sysmacros.h, so add the include to main.c. This is already handled correctly in mountinfo.c. Otherwise we get build failures like: main.o: In function 'find_device_sysfs': extlinux/main.c:1131: undefined reference to 'minor' Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'extlinux')
-rw-r--r--extlinux/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extlinux/main.c b/extlinux/main.c
index a7ebd49a..ebff7eae 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -38,6 +38,7 @@
#include <sysexits.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/vfs.h>