From a4b2c8a58f596e94ca42d69475ca4742845ac760 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Thu, 19 Jun 2025 10:25:59 +0200 Subject: [PATCH] package/watchdog: do not guard shutdown __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: https://sourceforge.net/p/watchdog/code/ci/aa371bf201b1d59c595a1ad7b3464ae544ed142f/ Fixes: https://autobuild.buildroot.org/results/3e67d5b3b89d794e3f6c510803368f8b100b07a7/ Signed-off-by: Yegor Yefremov [Julien: reformat Upstream: tag in patch to fix check-package error] Signed-off-by: Julien Olivain (cherry picked from commit ea797e760bc1d30ca5d8db042528bf3d1042a0f9) Signed-off-by: Thomas Perale --- ...0001-Do-not-guard-shutdown-__GLIBC__.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/watchdog/0001-Do-not-guard-shutdown-__GLIBC__.patch diff --git a/package/watchdog/0001-Do-not-guard-shutdown-__GLIBC__.patch b/package/watchdog/0001-Do-not-guard-shutdown-__GLIBC__.patch new file mode 100644 index 0000000000..7140888753 --- /dev/null +++ b/package/watchdog/0001-Do-not-guard-shutdown-__GLIBC__.patch @@ -0,0 +1,39 @@ +From aa371bf201b1d59c595a1ad7b3464ae544ed142f Mon Sep 17 00:00:00 2001 +From: Paul Crawford +Date: Thu, 16 Mar 2023 11:42:34 +0000 +Subject: [PATCH] Do not guard shutdown __GLIBC__ + +- Patch by Khem Raj + +- 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: https://sourceforge.net/p/watchdog/code/ci/aa371bf201b1d59c595a1ad7b3464ae544ed142f/ + +Signed-off-by: Yegor Yefremov +--- + src/shutdown.c | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/shutdown.c b/src/shutdown.c +index 1d9a857..6aea0d0 100644 +--- a/src/shutdown.c ++++ b/src/shutdown.c +@@ -29,13 +29,9 @@ + #include "extern.h" + #include "ext2_mnt.h" + +-#if defined __GLIBC__ + #include + #include + #include +-#else /* __GLIBC__ */ +-#include +-#endif /* __GLIBC__ */ + + #include + +-- +2.34.1 +