Implement futimes for Solaris using futimesat.

oldstable
Robert Lunnon 2005-05-07 14:53:38 +00:00 committed by Alexandre Julliard
parent ee7f5eb9a3
commit c0cb4d352b
4 changed files with 8 additions and 0 deletions

2
configure vendored
View File

@ -16382,6 +16382,7 @@ fi
for ac_func in \
@ -16405,6 +16406,7 @@ for ac_func in \
fstatvfs \
ftruncate \
futimes \
futimesat \
getnetbyname \
getopt_long \
getpagesize \

View File

@ -1143,6 +1143,7 @@ AC_CHECK_FUNCS(\
fstatvfs \
ftruncate \
futimes \
futimesat \
getnetbyname \
getopt_long \
getpagesize \

View File

@ -158,6 +158,9 @@
/* Define to 1 if you have the `futimes' function. */
#undef HAVE_FUTIMES
/* Define to 1 if you have the `futimesat' function. */
#undef HAVE_FUTIMESAT
/* Define to 1 if you have the `gethostbyname' function. */
#undef HAVE_GETHOSTBYNAME

View File

@ -43,6 +43,8 @@ int futimes(int fd, const struct timeval tv[2])
return utime( buffer, &ut );
}
else return utime( buffer, NULL );
#elif defined(HAVE_FUTIMESAT)
return futimesat( fd, NULL, tv );
#else
errno = ENOSYS;
return -1;