diff --git a/include/sudo_compat.h b/include/sudo_compat.h index c113560c3..a26a57571 100644 --- a/include/sudo_compat.h +++ b/include/sudo_compat.h @@ -28,6 +28,9 @@ #include /* to avoid problems with mismatched headers and libc */ #include /* to avoid problems with mismatched headers and libc */ #include +#if !defined(HAVE_UTIMENSAT) || !defined(HAVE_FUTIMENS) +# include +#endif #if !defined(HAVE_VSNPRINTF) || !defined(HAVE_VASPRINTF) || \ !defined(HAVE_VSYSLOG) || defined(PREFER_PORTABLE_SNPRINTF) # include