diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0002-src-login-brightness.c-include-sys-wait.h.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0002-src-login-brightness.c-include-sys-wait.h.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0002-src-login-brightness.c-include-sys-wait.h.patch b/meta/recipes-core/systemd/systemd/0002-src-login-brightness.c-include-sys-wait.h.patch new file mode 100644 index 0000000000..dcae668dcb --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0002-src-login-brightness.c-include-sys-wait.h.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Include sys/wait.h | ||
2 | |||
3 | Fixes: | ||
4 | src/login/logind-brightness.c:158:85: error: 'WEXITED' undeclared (first use in this function); did you mean 'WIFEXITED'? | ||
5 | 158 | r = sd_event_add_child(w->manager->event, &w->child_event_source, w->child, WEXITED, on_brightness_writer_exit, w); | ||
6 | | ^~~~~~~ | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> | ||
11 | --- | ||
12 | src/login/logind-brightness.c | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/src/login/logind-brightness.c b/src/login/logind-brightness.c | ||
16 | index 8dfa97d7ae..bddd4a2727 100644 | ||
17 | --- a/src/login/logind-brightness.c | ||
18 | +++ b/src/login/logind-brightness.c | ||
19 | @@ -1,5 +1,6 @@ | ||
20 | /* SPDX-License-Identifier: LGPL-2.1+ */ | ||
21 | |||
22 | +#include <sys/wait.h> | ||
23 | #include "bus-util.h" | ||
24 | #include "device-util.h" | ||
25 | #include "hash-funcs.h" | ||