diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-07-22 00:26:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-22 21:37:24 +0100 |
commit | 5841e52e79274b2da17bf7dbd1224d0a3dca2d6f (patch) | |
tree | a88e0f97fb65c9b61ea05ab67054c289fea6e316 /meta/recipes-extended/mdadm/files | |
parent | 31a08144f9c739b8d4f0a968860a5de8af44fdce (diff) | |
download | openembedded-core-contrib-5841e52e79274b2da17bf7dbd1224d0a3dca2d6f.tar.gz |
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
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm/files')
-rw-r--r-- | meta/recipes-extended/mdadm/files/include_sysmacros.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/include_sysmacros.patch b/meta/recipes-extended/mdadm/files/include_sysmacros.patch new file mode 100644 index 0000000000..8a1d8342d8 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/include_sysmacros.patch @@ -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> |