0012-pull-in-sys-sysmacros-h-for-major-minor-makedev.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 1a74985b2a404639b08882c57f3147229605dfd5 Mon Sep 17 00:00:00 2001
  2. From: Mike Frysinger <vapier@gentoo.org>
  3. Date: Tue, 19 Apr 2016 06:50:31 -0400
  4. Subject: [PATCH] extlinux: pull in sys/sysmacros.h for major/minor/makedev
  5. These functions are defined in sys/sysmacros.h, so add the include to
  6. main.c. This is already handled correctly in mountinfo.c. Otherwise
  7. we get build failures like:
  8. main.o: In function 'find_device_sysfs':
  9. extlinux/main.c:1131: undefined reference to 'minor'
  10. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  11. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
  12. Signed-off-by: Alexander Sverdlin <alexader.sverdlin@gmail.com>
  13. ---
  14. extlinux/main.c | 1 +
  15. 1 file changed, 1 insertion(+)
  16. diff --git a/extlinux/main.c b/extlinux/main.c
  17. index a7ebd49..ebff7ea 100644
  18. --- a/extlinux/main.c
  19. +++ b/extlinux/main.c
  20. @@ -38,6 +38,7 @@
  21. #include <sysexits.h>
  22. #include <sys/ioctl.h>
  23. #include <sys/stat.h>
  24. +#include <sys/sysmacros.h>
  25. #include <sys/types.h>
  26. #include <sys/mount.h>
  27. #include <sys/vfs.h>
  28. --
  29. 2.10.5.GIT