mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-02 07:15:27 +00:00
Fix compilation error on systems without futimes().
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "sudo_compat.h"
|
#include "sudo_compat.h"
|
||||||
|
#include "sudo_util.h"
|
||||||
|
|
||||||
#if !defined(HAVE_FUTIMES) && defined(HAVE_FUTIMESAT)
|
#if !defined(HAVE_FUTIMES) && defined(HAVE_FUTIMESAT)
|
||||||
# define futimes(_f, _tv) futimesat(_f, NULL, _tv)
|
# define futimes(_f, _tv) futimesat(_f, NULL, _tv)
|
||||||
@@ -120,7 +121,7 @@ sudo_futimens(int fd, const struct timespec *ts)
|
|||||||
* Emulate futimens() via futime()
|
* Emulate futimens() via futime()
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
sudo_futimens(int fd, const struct timeval *ts)
|
sudo_futimens(int fd, const struct timespec *ts)
|
||||||
{
|
{
|
||||||
struct utimbuf utb, *times = NULL;
|
struct utimbuf utb, *times = NULL;
|
||||||
|
|
||||||
@@ -140,7 +141,7 @@ sudo_futimens(int fd, const struct timeval *ts)
|
|||||||
* Nothing to do but fail.
|
* Nothing to do but fail.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
sudo_futimens(int fd, const struct timeval *ts)
|
sudo_futimens(int fd, const struct timespec *ts)
|
||||||
{
|
{
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user