From 2e957cd43df59a951d5eb40a45593f8d4c9dee39 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 3 Feb 2022 09:33:30 -0700 Subject: [PATCH] Fix compilation on Debian kFreeBSD. The configure script correctly detects that utimensat() and futimens() are missing but the headers define stub versions of the functions. Including sys/stat.h pulls in the system definitions so we can override them safely. Bug #1021. --- include/sudo_compat.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sudo_compat.h b/include/sudo_compat.h index bf619925e..d070006fb 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -25,6 +25,7 @@ #define SUDO_COMPAT_H #include /* for gid_t, mode_t, size_t, ssize_t, time_t, uid_t */ +#include /* to avoid problems with mismatched headers and libc */ #include /* to avoid problems with mismatched headers and libc */ #include #if !defined(HAVE_VSNPRINTF) || !defined(HAVE_VASPRINTF) || \