mirror of
https://git.yoctoproject.org/poky
synced 2026-09-12 06:49:32 +02:00
mdadm: Include sys/sysmacros.h for major/minor definitions
Fixes implicit declaration of function 'minor' is invalid in C99 [-Wimplicit-function-declaration] which eventually ends up with a linker error (From OE-Core rev: 5841e52e79274b2da17bf7dbd1224d0a3dca2d6f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
14
meta/recipes-extended/mdadm/files/include_sysmacros.patch
Normal file
14
meta/recipes-extended/mdadm/files/include_sysmacros.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
include sys/sysmacros.h for major/minor macro definitions
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
--- a/mdadm.h
|
||||
+++ b/mdadm.h
|
||||
@@ -35,6 +35,7 @@ extern __off64_t lseek64 __P ((int __fd,
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
Reference in New Issue
Block a user