--- libeio/eio.c 2010/10/30 14:36:53 1.58 +++ libeio/eio.c 2010/12/01 07:30:39 1.59 @@ -818,12 +818,10 @@ } #endif -#ifndef HAVE_FUTIMES +#ifndef HAVE_UTIMES # undef utimes -# undef futimes -# define utimes(path,times) eio__utimes (path, times) -# define futimes(fd,times) eio__futimes (fd, times) +# define utimes(path,times) eio__utimes (path, times) static int eio__utimes (const char *filename, const struct timeval times[2]) @@ -841,6 +839,13 @@ return utime (filename, 0); } +#endif + +#ifndef HAVE_FUTIMES + +# undef futimes +# define futimes(fd,times) eio__futimes (fd, times) + static int eio__futimes (int fd, const struct timeval tv[2]) { errno = ENOSYS;