diff options
author | ngie <ngie@FreeBSD.org> | 2014-11-16 05:13:39 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-11-16 05:13:39 +0000 |
commit | 911fbf166dd9bd9147adad1159e55cea24b0224c (patch) | |
tree | 3eb1972012e3e0af6ab0db4a4a6e68350cc6f3e8 /contrib/netbsd-tests/lib | |
parent | b3b68dbfb2468f41c66cf5896eb2024cd269e625 (diff) | |
download | FreeBSD-src-911fbf166dd9bd9147adad1159e55cea24b0224c.zip FreeBSD-src-911fbf166dd9bd9147adad1159e55cea24b0224c.tar.gz |
Add missing sys/time.h #include for timespecsub macro in lib/libnetbsd/sys/time.h
Diffstat (limited to 'contrib/netbsd-tests/lib')
-rw-r--r-- | contrib/netbsd-tests/lib/libpthread/t_condwait.c | 4 | ||||
-rw-r--r-- | contrib/netbsd-tests/lib/libpthread/t_once.c | 4 | ||||
-rw-r--r-- | contrib/netbsd-tests/lib/libpthread/t_sem.c | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libpthread/t_condwait.c b/contrib/netbsd-tests/lib/libpthread/t_condwait.c index 9b79587..17bbb89 100644 --- a/contrib/netbsd-tests/lib/libpthread/t_condwait.c +++ b/contrib/netbsd-tests/lib/libpthread/t_condwait.c @@ -40,6 +40,10 @@ __RCSID("$NetBSD: t_condwait.c,v 1.4 2013/04/12 17:18:11 christos Exp $"); #include "isqemu.h" +#ifdef __FreeBSD__ +#include <sys/time.h> +#endif + #define WAITTIME 2 /* Timeout wait secound */ static const int debug = 1; diff --git a/contrib/netbsd-tests/lib/libpthread/t_once.c b/contrib/netbsd-tests/lib/libpthread/t_once.c index 575d5d7..e879077 100644 --- a/contrib/netbsd-tests/lib/libpthread/t_once.c +++ b/contrib/netbsd-tests/lib/libpthread/t_once.c @@ -46,6 +46,10 @@ static int x; #define NTHREADS 25 +#ifdef __FreeBSD__ +#include <sys/time.h> +#endif + static void ofunc(void) { diff --git a/contrib/netbsd-tests/lib/libpthread/t_sem.c b/contrib/netbsd-tests/lib/libpthread/t_sem.c index a4e03ae..5bb7ae7 100644 --- a/contrib/netbsd-tests/lib/libpthread/t_sem.c +++ b/contrib/netbsd-tests/lib/libpthread/t_sem.c @@ -111,6 +111,10 @@ __RCSID("$NetBSD: t_sem.c,v 1.8 2014/11/04 00:20:19 justin Exp $"); static sem_t sem; +#ifdef __FreeBSD__ +#include <sys/time.h> +#endif + ATF_TC(named); ATF_TC_HEAD(named, tc) { |