mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
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.
This commit is contained in:
parent
a299406291
commit
2e957cd43d
@ -25,6 +25,7 @@
|
|||||||
#define SUDO_COMPAT_H
|
#define SUDO_COMPAT_H
|
||||||
|
|
||||||
#include <sys/types.h> /* for gid_t, mode_t, size_t, ssize_t, time_t, uid_t */
|
#include <sys/types.h> /* for gid_t, mode_t, size_t, ssize_t, time_t, uid_t */
|
||||||
|
#include <sys/stat.h> /* to avoid problems with mismatched headers and libc */
|
||||||
#include <unistd.h> /* to avoid problems with mismatched headers and libc */
|
#include <unistd.h> /* to avoid problems with mismatched headers and libc */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_VASPRINTF) || \
|
#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_VASPRINTF) || \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user