--- a/lib9/dirfwstat.c 2012-02-29 01:59:12.000000000 +0100 +++ b/lib9/dirfwstat.c 2012-02-29 01:41:06.000000000 +0100 @@ -7,6 +7,15 @@ #if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__linux__) /* do nothing -- futimes exists and is fine */ +# if defined(__UCLIBC__) +/* use futimesat */ +static int +futimes(int fd, struct timeval *tv) +{ + return futimesat(fd, 0, tv); +} + +# endif #elif defined(__SunOS5_9__) /* use futimesat */ static int