2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Include time.h if missing utimensat() or futimens().

Now that we declare these as taking a timespec array we cannot get
away with a simple forward declaration.
This commit is contained in:
Todd C. Miller 2024-08-13 10:19:26 -06:00
parent e7483ae8e9
commit 6f8dfd9686

View File

@ -28,6 +28,9 @@
#include <sys/stat.h> /* to avoid problems with mismatched headers and libc */
#include <unistd.h> /* to avoid problems with mismatched headers and libc */
#include <stdio.h>
#if !defined(HAVE_UTIMENSAT) || !defined(HAVE_FUTIMENS)
# include <time.h>
#endif
#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_VASPRINTF) || \
!defined(HAVE_VSYSLOG) || defined(PREFER_PORTABLE_SNPRINTF)
# include <stdarg.h>