syslinux-6.03-sysmacros.patch 949 B

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