From 911fbf166dd9bd9147adad1159e55cea24b0224c Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 16 Nov 2014 05:13:39 +0000 Subject: Add missing sys/time.h #include for timespecsub macro in lib/libnetbsd/sys/time.h --- contrib/netbsd-tests/lib/libpthread/t_condwait.c | 4 ++++ contrib/netbsd-tests/lib/libpthread/t_once.c | 4 ++++ contrib/netbsd-tests/lib/libpthread/t_sem.c | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'contrib/netbsd-tests/lib/libpthread') 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 +#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 +#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 +#endif + ATF_TC(named); ATF_TC_HEAD(named, tc) { -- cgit v1.1