aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/dirfwstat.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-23 19:49:17 +0000
committerrsc <devnull@localhost>2003-11-23 19:49:17 +0000
commit1c253ceb586c4519f42ce115954c4efab787f81a (patch)
tree22281aafc4c33f4ab310a845aec510f013511833 /src/lib9/dirfwstat.c
parent50e628cb8f4594b7cbccc17ff3f701ff260a69c0 (diff)
downloadplan9port-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.c9
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);
}
+