0001-eject-Include-sys-sysmacros.h-for-major-minor.patch 825 B

123456789101112131415161718192021222324252627
  1. From 433ffb21119a0f39e882dd3fea4742e64aadcc40 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sat, 11 Aug 2018 09:56:40 -0700
  4. Subject: [PATCH] eject: Include sys/sysmacros.h for major/minor
  5. Fixes
  6. arm-bec-linux-gnueabi/gcc/arm-bec-linux-gnueabi/8.2.0/ld: eject.o: in function `GetMajorMinor':
  7. /usr/src/debug/eject/2.1.5-r1/eject-2.1.5/../../../../../../../workspace/sources/eject/eject.c:866: undefined reference to `major'
  8. Upstream-Status: Pending
  9. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  10. ---
  11. eject.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/eject.c b/eject.c
  14. index 47e09fe..b171218 100644
  15. --- a/eject.c
  16. +++ b/eject.c
  17. @@ -54,6 +54,7 @@
  18. #include <sys/wait.h>
  19. #include <sys/mtio.h>
  20. #include <sys/mount.h>
  21. +#include <sys/sysmacros.h>
  22. #if defined(__linux__)
  23. #include <linux/version.h>