diff options
author | rsc <devnull@localhost> | 2003-11-23 19:49:17 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-11-23 19:49:17 +0000 |
commit | 1c253ceb586c4519f42ce115954c4efab787f81a (patch) | |
tree | 22281aafc4c33f4ab310a845aec510f013511833 /src/lib9/dirfwstat.c | |
parent | 50e628cb8f4594b7cbccc17ff3f701ff260a69c0 (diff) | |
download | plan9port-1c253ceb586c4519f42ce115954c4efab787f81a.tar.gz plan9port-1c253ceb586c4519f42ce115954c4efab787f81a.tar.bz2 plan9port-1c253ceb586c4519f42ce115954c4efab787f81a.zip |
Annoying changes to work on Sun boxes.
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); } + |