diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-11 15:21:18 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-15 08:20:06 -0700 |
commit | dc344220372d35c1ef6db8b61aa2492dfd6e6864 (patch) | |
tree | e84572df756e835551fc5ea88a67b5226b0383fe | |
parent | f92e153135d7ae5689c2fbf5b440976d6e72c5fc (diff) | |
download | meta-openembedded-dc344220372d35c1ef6db8b61aa2492dfd6e6864.tar.gz |
lockdev: Fix build with glibc 2.28+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/lockdev/lockdev/0001-include-sys-sysmacros.h-for-major-minor-definitions.patch | 30 | ||||
-rw-r--r-- | meta-oe/recipes-support/lockdev/lockdev_git.bb | 4 |
2 files changed, 33 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/lockdev/lockdev/0001-include-sys-sysmacros.h-for-major-minor-definitions.patch b/meta-oe/recipes-support/lockdev/lockdev/0001-include-sys-sysmacros.h-for-major-minor-definitions.patch new file mode 100644 index 0000000000..12f5be981b --- /dev/null +++ b/meta-oe/recipes-support/lockdev/lockdev/0001-include-sys-sysmacros.h-for-major-minor-definitions.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 2f39dc3d6f920c0826aa74367da1a0a7cc49b0fe Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 11 Aug 2018 15:18:04 -0700 | ||
4 | Subject: [PATCH] include sys/sysmacros.h for major/minor definitions | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated. | ||
10 | This means that in a future release, the macros “major”, “minor”, and | ||
11 | “makedev” will only be available from <sys/sysmacros.h>. | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | src/lockdev.c | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/src/lockdev.c b/src/lockdev.c | ||
20 | index 9a0fca5..3581938 100644 | ||
21 | --- a/src/lockdev.c | ||
22 | +++ b/src/lockdev.c | ||
23 | @@ -117,6 +117,7 @@ | ||
24 | #include <sys/stat.h> | ||
25 | #include <sys/file.h> | ||
26 | #include <sys/types.h> | ||
27 | +#include <sys/sysmacros.h> | ||
28 | #include <sys/wait.h> | ||
29 | #include "lockdev.h" | ||
30 | #include "ttylock.h" | ||
diff --git a/meta-oe/recipes-support/lockdev/lockdev_git.bb b/meta-oe/recipes-support/lockdev/lockdev_git.bb index 507ce3fe57..5ad7f0c503 100644 --- a/meta-oe/recipes-support/lockdev/lockdev_git.bb +++ b/meta-oe/recipes-support/lockdev/lockdev_git.bb | |||
@@ -6,7 +6,9 @@ LIC_FILES_CHKSUM="file://COPYING;md5=4fbd65380cdd255951079008b364516c" | |||
6 | PV = "1.0.3+git${SRCPV}" | 6 | PV = "1.0.3+git${SRCPV}" |
7 | 7 | ||
8 | SRCREV = "16b899645d32012cc94cc9232f64d4ddaaf0b795" | 8 | SRCREV = "16b899645d32012cc94cc9232f64d4ddaaf0b795" |
9 | SRC_URI = "git://anonscm.debian.org/lockdev/lockdev.git" | 9 | SRC_URI = "git://anonscm.debian.org/lockdev/lockdev.git \ |
10 | file://0001-include-sys-sysmacros.h-for-major-minor-definitions.patch \ | ||
11 | " | ||
10 | 12 | ||
11 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
12 | 14 | ||