summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch')
-rw-r--r--meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch b/meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch
deleted file mode 100644
index 6293f9b2b3..0000000000
--- a/meta/recipes-extended/mdadm/files/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From 714f2262960a7fe9e8f973629ed214023e144590 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 18 Dec 2016 08:30:51 +0000
4Subject: [PATCH] include <sys/sysmacros.h> for major/minor defintions
5
6glibc 2.25 is warning about it if applications depend on
7sys/types.h for these macros, it expects to be included
8from <sys/sysmacros.h>
9
10Fixes
11| Grow.c:3534:13: error: In the GNU C Library, "minor" is defined
12| by <sys/sysmacros.h>. For historical compatibility, it is
13| currently defined by <sys/types.h> as well, but we plan to
14| remove this soon. To use "minor", include <sys/sysmacros.h>
15| directly. If you did not intend to use a system-defined macro
16| "minor", you should undefine it after including <sys/types.h>. [-Werror]
17| Query.c: In function 'Query':
18| Query.c:105:13: error: In the GNU C Library, "makedev" is defined
19| by <sys/sysmacros.h>. For historical compatibility, it is
20| currently defined by <sys/types.h> as well, but we plan to
21| remove this soon. To use "makedev", include <sys/sysmacros.h>
22| directly. If you did not intend to use a system-defined macro
23| "makedev", you should undefine it after including <sys/types.h>. [-Werror]
24| makedev((unsigned)disc.major,(unsigned)disc.minor) == stb.st_rdev)
25| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26
27Signed-off-by: Khem Raj <raj.khem@gmail.com>
28Upstream-Status: Pending
29---
30 mdadm.h | 1 +
31 1 file changed, 1 insertion(+)
32
33diff --git a/mdadm.h b/mdadm.h
34index bb943bf..79c44c6 100644
35--- a/mdadm.h
36+++ b/mdadm.h
37@@ -34,6 +34,7 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
38 #endif
39
40 #include <sys/types.h>
41+#include <sys/sysmacros.h>
42 #include <sys/stat.h>
43 #include <stdint.h>
44 #include <stdlib.h>