$NetBSD: patch-bin_ad_ad__cp.c,v 1.3 2023/05/04 16:53:07 hauke Exp $ Treat NetBSD as FreeBSD for timeval to timespec conversion --- bin/ad/ad_cp.c.orig 2014-01-27 07:37:46.000000000 +0000 +++ bin/ad/ad_cp.c @@ -821,7 +821,7 @@ static int setfile(const struct stat *fs islink = !fdval && S_ISLNK(fs->st_mode); mode = fs->st_mode & (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO); -#if defined(__FreeBSD__) || defined(__APPLE__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec); TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec); #else