mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
Implement futimes for Solaris using futimesat.
This commit is contained in:
parent
ee7f5eb9a3
commit
c0cb4d352b
2
configure
vendored
2
configure
vendored
@ -16382,6 +16382,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ac_func in \
|
for ac_func in \
|
||||||
@ -16405,6 +16406,7 @@ for ac_func in \
|
|||||||
fstatvfs \
|
fstatvfs \
|
||||||
ftruncate \
|
ftruncate \
|
||||||
futimes \
|
futimes \
|
||||||
|
futimesat \
|
||||||
getnetbyname \
|
getnetbyname \
|
||||||
getopt_long \
|
getopt_long \
|
||||||
getpagesize \
|
getpagesize \
|
||||||
|
@ -1143,6 +1143,7 @@ AC_CHECK_FUNCS(\
|
|||||||
fstatvfs \
|
fstatvfs \
|
||||||
ftruncate \
|
ftruncate \
|
||||||
futimes \
|
futimes \
|
||||||
|
futimesat \
|
||||||
getnetbyname \
|
getnetbyname \
|
||||||
getopt_long \
|
getopt_long \
|
||||||
getpagesize \
|
getpagesize \
|
||||||
|
@ -158,6 +158,9 @@
|
|||||||
/* Define to 1 if you have the `futimes' function. */
|
/* Define to 1 if you have the `futimes' function. */
|
||||||
#undef HAVE_FUTIMES
|
#undef HAVE_FUTIMES
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `futimesat' function. */
|
||||||
|
#undef HAVE_FUTIMESAT
|
||||||
|
|
||||||
/* Define to 1 if you have the `gethostbyname' function. */
|
/* Define to 1 if you have the `gethostbyname' function. */
|
||||||
#undef HAVE_GETHOSTBYNAME
|
#undef HAVE_GETHOSTBYNAME
|
||||||
|
|
||||||
|
@ -43,6 +43,8 @@ int futimes(int fd, const struct timeval tv[2])
|
|||||||
return utime( buffer, &ut );
|
return utime( buffer, &ut );
|
||||||
}
|
}
|
||||||
else return utime( buffer, NULL );
|
else return utime( buffer, NULL );
|
||||||
|
#elif defined(HAVE_FUTIMESAT)
|
||||||
|
return futimesat( fd, NULL, tv );
|
||||||
#else
|
#else
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user