Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 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 | |
| 6 | Fixes |
| 7 | arm-bec-linux-gnueabi/gcc/arm-bec-linux-gnueabi/8.2.0/ld: eject.o: in function `GetMajorMinor': |
| 8 | /usr/src/debug/eject/2.1.5-r1/eject-2.1.5/../../../../../../../workspace/sources/eject/eject.c:866: undefined reference to `major' |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | eject.c | 1 + |
| 14 | 1 file changed, 1 insertion(+) |
| 15 | |
| 16 | diff --git a/eject.c b/eject.c |
| 17 | index 47e09fe..b171218 100644 |
| 18 | --- a/eject.c |
| 19 | +++ b/eject.c |
| 20 | @@ -54,6 +54,7 @@ |
| 21 | #include <sys/wait.h> |
| 22 | #include <sys/mtio.h> |
| 23 | #include <sys/mount.h> |
| 24 | +#include <sys/sysmacros.h> |
| 25 | |
| 26 | #if defined(__linux__) |
| 27 | #include <linux/version.h> |