summaryrefslogtreecommitdiff
path: root/sys-apps/watchdog/files/watchdog-5.16-implicit-func-decls-musl.patch
blob: 82f41ed634202f513e9bc6ecbac66248920923ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
https://cgit.openembedded.org/openembedded-core/plain/meta/recipes-extended/watchdog/watchdog/0001-shutdown-Do-not-guard-sys-quota.h-sys-swap.h-and-sys.patch?id=a53722b962e79e0831c0fba24ef7c1cfda24971a

From ca1d379fa13c4055d42d2ff3a647b4397768efcd Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 23 Aug 2022 19:23:26 -0700
Subject: [PATCH] shutdown: Do not guard sys/quota.h sys/swap.h and
 sys/reboot.h with __GLIBC__

These headers are provided by uclibc/musl/glibc and bionic so we can
assume they are not needed to be glibc specific includes. This also
ensures that we get proper declaration of reboot() API

Upstream-Status: Submitted [https://sourceforge.net/p/watchdog/patches/12/]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -29,13 +29,9 @@
 #include "extern.h"
 #include "ext2_mnt.h"
 
-#if defined __GLIBC__
 #include <sys/quota.h>
 #include <sys/swap.h>
 #include <sys/reboot.h>
-#else				/* __GLIBC__ */
-#include <linux/quota.h>
-#endif				/* __GLIBC__ */
 
 #include <unistd.h>