diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0025-include-sys-file.h-for-LOCK_EX.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0025-include-sys-file.h-for-LOCK_EX.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0025-include-sys-file.h-for-LOCK_EX.patch b/meta/recipes-core/systemd/systemd/0025-include-sys-file.h-for-LOCK_EX.patch new file mode 100644 index 0000000000..7827cc1403 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0025-include-sys-file.h-for-LOCK_EX.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 2 Aug 2023 10:33:48 -0700 | ||
4 | Subject: [PATCH] include sys/file.h for LOCK_EX | ||
5 | |||
6 | Fixes | ||
7 | | ../git/src/basic/user-util.c:708:30: error: use of undeclared identifier 'LOCK_EX'; did you mean 'LOCK_BSD'? | ||
8 | | 708 | r = unposix_lock(fd, LOCK_EX); | ||
9 | | | ^~~~~~~ | ||
10 | | | LOCK_BSD | ||
11 | |||
12 | Upstream-Status: Backport [https://github.com/systemd/systemd/pull/28647] | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | src/basic/user-util.c | 1 + | ||
16 | 1 file changed, 1 insertion(+) | ||
17 | |||
18 | diff --git a/src/basic/user-util.c b/src/basic/user-util.c | ||
19 | index fe61a09005..5c39847733 100644 | ||
20 | --- a/src/basic/user-util.c | ||
21 | +++ b/src/basic/user-util.c | ||
22 | @@ -6,6 +6,7 @@ | ||
23 | #include <stdint.h> | ||
24 | #include <stdio.h> | ||
25 | #include <stdlib.h> | ||
26 | +#include <sys/file.h> | ||
27 | #include <sys/stat.h> | ||
28 | #include <unistd.h> | ||
29 | #include <utmp.h> | ||