diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-10 18:59:18 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-10 18:59:18 +0000 |
commit | 7a443b9edd4e06abc67f81d6c6037191525045d4 (patch) | |
tree | 7d53e8268d870e7db8da43bd372c132fb42f74b8 /contrib/netbsd-tests/lib/libc | |
parent | 5c778ecb2063f1ab20f356631ec7cd06f922a747 (diff) | |
download | FreeBSD-src-7a443b9edd4e06abc67f81d6c6037191525045d4.zip FreeBSD-src-7a443b9edd4e06abc67f81d6c6037191525045d4.tar.gz |
Add missing #include <sys/time.h> for gettimeofday
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/gen/t_time.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/gen/t_time.c b/contrib/netbsd-tests/lib/libc/gen/t_time.c index bfbdc73..21e625f 100644 --- a/contrib/netbsd-tests/lib/libc/gen/t_time.c +++ b/contrib/netbsd-tests/lib/libc/gen/t_time.c @@ -31,6 +31,9 @@ #include <sys/cdefs.h> __RCSID("$NetBSD: t_time.c,v 1.2 2011/11/11 05:03:38 jruoho Exp $"); +#if defined(__FreeBSD__) +#include <sys/time.h> +#endif #include <atf-c.h> #include <errno.h> #include <inttypes.h> |