summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-23 23:34:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-25 11:08:06 +0100
commitb3a8a63fdc452abf3d890eaab7e211095bad5571 (patch)
treed0092f37f03eb8c4ea691bd696365dd0a2a91514 /meta
parenta9c31f062891dca5f4e16e967fe26a9bf544f00b (diff)
downloadpoky-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.patch37
-rw-r--r--meta/recipes-extended/watchdog/watchdog_5.16.bb1
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 @@
1From ca1d379fa13c4055d42d2ff3a647b4397768efcd Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 23 Aug 2022 19:23:26 -0700
4Subject: [PATCH] shutdown: Do not guard sys/quota.h sys/swap.h and
5 sys/reboot.h with __GLIBC__
6
7These headers are provided by uclibc/musl/glibc and bionic so we can
8assume they are not needed to be glibc specific includes. This also
9ensures that we get proper declaration of reboot() API
10
11Upstream-Status: Submitted [https://sourceforge.net/p/watchdog/patches/12/]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/shutdown.c | 4 ----
15 1 file changed, 4 deletions(-)
16
17diff --git a/src/shutdown.c b/src/shutdown.c
18index 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--
362.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
18SRC_URI[md5sum] = "1b4f51cabc64d1bee2fce7cdd626831f" 19SRC_URI[md5sum] = "1b4f51cabc64d1bee2fce7cdd626831f"