mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +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:
parent
e7483ae8e9
commit
6f8dfd9686
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user