summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-oe/recipes-support/eject/eject/0001-eject-Include-sys-sysmacros.h-for-major-minor.patch
blob: 055128706c0529c1762ffe767a333702b52fbe16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 433ffb21119a0f39e882dd3fea4742e64aadcc40 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 11 Aug 2018 09:56:40 -0700
Subject: [PATCH] eject: Include sys/sysmacros.h for major/minor

Fixes
arm-bec-linux-gnueabi/gcc/arm-bec-linux-gnueabi/8.2.0/ld: eject.o: in function `GetMajorMinor':
/usr/src/debug/eject/2.1.5-r1/eject-2.1.5/../../../../../../../workspace/sources/eject/eject.c:866: undefined reference to `major'

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 eject.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eject.c b/eject.c
index 47e09fe..b171218 100644
--- a/eject.c
+++ b/eject.c
@@ -54,6 +54,7 @@
 #include <sys/wait.h>
 #include <sys/mtio.h>
 #include <sys/mount.h>
+#include <sys/sysmacros.h>
 
 #if defined(__linux__)
 #include <linux/version.h>
OpenPOWER on IntegriCloud