diff options
Diffstat (limited to 'meta/recipes-extended/watchdog/watchdog/0001-shutdown-Do-not-guard-sys-quota.h-sys-swap.h-and-sys.patch')
-rw-r--r-- | meta/recipes-extended/watchdog/watchdog/0001-shutdown-Do-not-guard-sys-quota.h-sys-swap.h-and-sys.patch | 37 |
1 files changed, 37 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 | |||