diff options
Diffstat (limited to 'src/lib9/dirfwstat.c')
-rw-r--r-- | src/lib9/dirfwstat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib9/dirfwstat.c b/src/lib9/dirfwstat.c index 7f6c54aa..7ca51251 100644 --- a/src/lib9/dirfwstat.c +++ b/src/lib9/dirfwstat.c @@ -4,6 +4,14 @@ #include <sys/time.h> +#if !defined(_HAVEFUTIMES) && defined(_HAVEFUTIMESAT) +static int +futimes(int fd, struct timeval *tv) +{ + return futimesat(fd, 0, tv); +} +#endif + int dirfwstat(int fd, Dir *dir) { @@ -19,3 +27,4 @@ dirfwstat(int fd, Dir *dir) tv[1].tv_usec = 0; return futimes(fd, tv); } + |