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 | 56 |
1 files changed, 56 insertions, 0 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 new file mode 100644 index 0000000000..d06967f8d5 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From 5b8df64993b68a5a4af0f214d8cae77f4e716593 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/26] 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/basic/fd-util.h | 1 + | ||
14 | src/core/exec-invoke.c | 1 + | ||
15 | src/shared/dev-setup.h | 1 + | ||
16 | 3 files changed, 3 insertions(+) | ||
17 | |||
18 | diff --git a/src/basic/fd-util.h b/src/basic/fd-util.h | ||
19 | index 93b254c680..5f0b1a816d 100644 | ||
20 | --- a/src/basic/fd-util.h | ||
21 | +++ b/src/basic/fd-util.h | ||
22 | @@ -6,6 +6,7 @@ | ||
23 | #include <stdbool.h> | ||
24 | #include <stdio.h> | ||
25 | #include <sys/socket.h> | ||
26 | +#include <sys/file.h> | ||
27 | |||
28 | #include "macro.h" | ||
29 | #include "missing_fcntl.h" | ||
30 | diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c | ||
31 | index 9d636f5529..6be43caa57 100644 | ||
32 | --- a/src/core/exec-invoke.c | ||
33 | +++ b/src/core/exec-invoke.c | ||
34 | @@ -5,6 +5,7 @@ | ||
35 | #include <sys/ioctl.h> | ||
36 | #include <sys/mount.h> | ||
37 | #include <sys/prctl.h> | ||
38 | +#include <sys/file.h> | ||
39 | |||
40 | #if HAVE_PAM | ||
41 | #include <security/pam_appl.h> | ||
42 | diff --git a/src/shared/dev-setup.h b/src/shared/dev-setup.h | ||
43 | index 92ba6cf764..ba01a0ae55 100644 | ||
44 | --- a/src/shared/dev-setup.h | ||
45 | +++ b/src/shared/dev-setup.h | ||
46 | @@ -2,6 +2,7 @@ | ||
47 | #pragma once | ||
48 | |||
49 | #include <sys/types.h> | ||
50 | +#include <sys/file.h> | ||
51 | |||
52 | int dev_setup(const char *prefix, uid_t uid, gid_t gid); | ||
53 | |||
54 | -- | ||
55 | 2.34.1 | ||
56 | |||