Skip to content

Commit

Permalink
extlinux: pull in sys/sysmacros.h for major/minor/makedev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vapier authored and geneC committed Apr 24, 2016
1 parent a615768 commit 1a74985
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extlinux/main.c
Expand Up @@ -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>
Expand Down

0 comments on commit 1a74985

Please sign in to comment.