diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-23 23:34:38 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-25 11:08:06 +0100 |
commit | b3a8a63fdc452abf3d890eaab7e211095bad5571 (patch) | |
tree | d0092f37f03eb8c4ea691bd696365dd0a2a91514 /meta | |
parent | a9c31f062891dca5f4e16e967fe26a9bf544f00b (diff) | |
download | poky-b3a8a63fdc452abf3d890eaab7e211095bad5571.tar.gz |
watchdog: Include needed system header for function decls
These headers are needed on musl too.
(From OE-Core rev: a53722b962e79e0831c0fba24ef7c1cfda24971a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/watchdog/watchdog/0001-shutdown-Do-not-guard-sys-quota.h-sys-swap.h-and-sys.patch | 37 | ||||
-rw-r--r-- | meta/recipes-extended/watchdog/watchdog_5.16.bb | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-extended/watchdog/watchdog/0001-shutdown-Do-not-guard-sys-quota.h-sys-swap.h-and-sys.patch b/meta/recipes-extended/watchdog/watchdog/0001-shutdown-Do-not-guard-sys-quota.h-sys-swap.h-and-sys.patch new file mode 100644 index 0000000000..8c419e1d11 --- /dev/null +++ b/meta/recipes-extended/watchdog/watchdog/0001-shutdown-Do-not-guard-sys-quota.h-sys-swap.h-and-sys.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From ca1d379fa13c4055d42d2ff3a647b4397768efcd Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 23 Aug 2022 19:23:26 -0700 | ||
4 | Subject: [PATCH] shutdown: Do not guard sys/quota.h sys/swap.h and | ||
5 | sys/reboot.h with __GLIBC__ | ||
6 | |||
7 | These headers are provided by uclibc/musl/glibc and bionic so we can | ||
8 | assume they are not needed to be glibc specific includes. This also | ||
9 | ensures that we get proper declaration of reboot() API | ||
10 | |||
11 | Upstream-Status: Submitted [https://sourceforge.net/p/watchdog/patches/12/] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | src/shutdown.c | 4 ---- | ||
15 | 1 file changed, 4 deletions(-) | ||
16 | |||
17 | diff --git a/src/shutdown.c b/src/shutdown.c | ||
18 | index 1d9a857..6aea0d0 100644 | ||
19 | --- a/src/shutdown.c | ||
20 | +++ b/src/shutdown.c | ||
21 | @@ -29,13 +29,9 @@ | ||
22 | #include "extern.h" | ||
23 | #include "ext2_mnt.h" | ||
24 | |||
25 | -#if defined __GLIBC__ | ||
26 | #include <sys/quota.h> | ||
27 | #include <sys/swap.h> | ||
28 | #include <sys/reboot.h> | ||
29 | -#else /* __GLIBC__ */ | ||
30 | -#include <linux/quota.h> | ||
31 | -#endif /* __GLIBC__ */ | ||
32 | |||
33 | #include <unistd.h> | ||
34 | |||
35 | -- | ||
36 | 2.37.2 | ||
37 | |||
diff --git a/meta/recipes-extended/watchdog/watchdog_5.16.bb b/meta/recipes-extended/watchdog/watchdog_5.16.bb index 1163846ed8..26fcc10487 100644 --- a/meta/recipes-extended/watchdog/watchdog_5.16.bb +++ b/meta/recipes-extended/watchdog/watchdog_5.16.bb | |||
@@ -13,6 +13,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/watchdog/watchdog-${PV}.tar.gz \ | |||
13 | file://watchdog.init \ | 13 | file://watchdog.init \ |
14 | file://wd_keepalive.init \ | 14 | file://wd_keepalive.init \ |
15 | file://0001-wd_keepalive.service-use-run-instead-of-var-run.patch \ | 15 | file://0001-wd_keepalive.service-use-run-instead-of-var-run.patch \ |
16 | file://0001-shutdown-Do-not-guard-sys-quota.h-sys-swap.h-and-sys.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | SRC_URI[md5sum] = "1b4f51cabc64d1bee2fce7cdd626831f" | 19 | SRC_URI[md5sum] = "1b4f51cabc64d1bee2fce7cdd626831f" |