From 31a3961c4cd387aa4aa1a0c7bf197445a346e5f0 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 2 Jun 2024 00:25:26 +0100 Subject: [PATCH] watchdog: add includes for geteuid 05a3e2bad9a3baf27293f0b5ed4bef4f38952804 added `geteuid` use but didn't add the needed headers. This works by chance on libstdc++ systems via transitive includes, but it doesn't work on libc++ systems, as reported downstream in Gentoo at https://bugs.gentoo.org/933120. --- src/watchdog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/watchdog.cpp b/src/watchdog.cpp index f33b548496..1cf4aff343 100644 --- a/src/watchdog.cpp +++ b/src/watchdog.cpp @@ -8,6 +8,8 @@ */ #include "watchdoglogging.h" +#include +#include #include #include #include