]> granicus.if.org Git - sudo/commitdiff
Fix compilation error on systems without futimes().
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Mar 2015 21:28:46 +0000 (14:28 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 2 Mar 2015 21:28:46 +0000 (14:28 -0700)
lib/util/utimens.c

index b2eac19b6acfb221461134ac77de1692e9f284db..3a62e2900ef653d61cbdfee78b56b5df222e9fb1 100644 (file)
@@ -36,6 +36,7 @@
 #endif
 
 #include "sudo_compat.h"
+#include "sudo_util.h"
 
 #if !defined(HAVE_FUTIMES) && defined(HAVE_FUTIMESAT)
 # define futimes(_f, _tv)      futimesat(_f, NULL, _tv)
@@ -120,7 +121,7 @@ sudo_futimens(int fd, const struct timespec *ts)
  * Emulate futimens() via futime()
  */
 int
-sudo_futimens(int fd, const struct timeval *ts)
+sudo_futimens(int fd, const struct timespec *ts)
 {
     struct utimbuf utb, *times = NULL;
 
@@ -140,7 +141,7 @@ sudo_futimens(int fd, const struct timeval *ts)
  * Nothing to do but fail.
  */
 int
-sudo_futimens(int fd, const struct timeval *ts)
+sudo_futimens(int fd, const struct timespec *ts)
 {
     errno = ENOSYS;
     return -1;