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
38