Annoying changes to work on Sun boxes.

This commit is contained in:
rsc 2003-11-23 19:49:17 +00:00
parent 50e628cb8f
commit 1c253ceb58
19 changed files with 95 additions and 54 deletions

View file

@ -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);
}