=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/timestamp.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/make/timestamp.c 2007/09/16 12:09:36 1.3 +++ src/usr.bin/make/timestamp.c 2009/08/16 09:53:43 1.4 @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: timestamp.c,v 1.3 2007/09/16 12:09:36 espie Exp $ */ +/* $OpenBSD: timestamp.c,v 1.4 2009/08/16 09:53:43 espie Exp $ */ /* * Copyright (c) 2001 Marc Espie. @@ -42,13 +42,14 @@ #ifdef USE_TIMESPEC struct timeval tv[2]; - TIMESPEC_TO_TIMEVAL(&tv[0], &now); - TIMESPEC_TO_TIMEVAL(&tv[1], &now); + gettimeofday(&tv[0], NULL); + tv[1] = tv[0]; return utimes(f, tv); #else struct utimbuf times; - times.actime = times.modtime = now; + time(×.actime); + times.modtime = times.actime; return utime(f, ×); #endif }