summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
diff options
context:
space:
mode:
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.patch43
1 files changed, 43 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..24f3bf74a0
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
@@ -0,0 +1,43 @@
1From fd52f1764647e03a35e8f0ed0ef952049073ccbd Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Tue, 2 Jan 2024 11:03:27 +0800
4Subject: [PATCH 22/22] avoid missing LOCK_EX declaration
5
6This only happens on MUSL. Include sys/file.h to avoid compilation
7error about missing LOCK_EX declaration.
8
9Upstream-Status: Inappropriate [musl specific]
10
11Signed-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
17diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c
18index 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>
29diff --git a/src/shared/dev-setup.h b/src/shared/dev-setup.h
30index 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--
422.34.1
43