diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch deleted file mode 100644 index 24f3bf74a0..0000000000 --- a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From fd52f1764647e03a35e8f0ed0ef952049073ccbd Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Tue, 2 Jan 2024 11:03:27 +0800 | ||
4 | Subject: [PATCH 22/22] avoid missing LOCK_EX declaration | ||
5 | |||
6 | This only happens on MUSL. Include sys/file.h to avoid compilation | ||
7 | error about missing LOCK_EX declaration. | ||
8 | |||
9 | Upstream-Status: Inappropriate [musl specific] | ||
10 | |||
11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
12 | --- | ||
13 | src/core/exec-invoke.c | 1 + | ||
14 | src/shared/dev-setup.h | 1 + | ||
15 | 2 files changed, 2 insertions(+) | ||
16 | |||
17 | diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c | ||
18 | index 70d963e269..7084811439 100644 | ||
19 | --- a/src/core/exec-invoke.c | ||
20 | +++ b/src/core/exec-invoke.c | ||
21 | @@ -4,6 +4,7 @@ | ||
22 | #include <sys/ioctl.h> | ||
23 | #include <sys/mount.h> | ||
24 | #include <sys/prctl.h> | ||
25 | +#include <sys/file.h> | ||
26 | |||
27 | #if HAVE_PAM | ||
28 | #include <security/pam_appl.h> | ||
29 | diff --git a/src/shared/dev-setup.h b/src/shared/dev-setup.h | ||
30 | index 5339bc4e5e..0697495f23 100644 | ||
31 | --- a/src/shared/dev-setup.h | ||
32 | +++ b/src/shared/dev-setup.h | ||
33 | @@ -2,6 +2,7 @@ | ||
34 | #pragma once | ||
35 | |||
36 | #include <sys/types.h> | ||
37 | +#include <sys/file.h> | ||
38 | |||
39 | int lock_dev_console(void); | ||
40 | |||
41 | -- | ||
42 | 2.34.1 | ||
43 | |||