Add missing sys/time.h #include for timespecsub macro in lib/libnetbsd/sys/time.h

This commit is contained in:
ngie 2014-11-16 05:13:39 +00:00
parent b3b68dbfb2
commit 911fbf166d
3 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -46,6 +46,10 @@ static int x;
#define NTHREADS 25
#ifdef __FreeBSD__
#include <sys/time.h>
#endif
static void
ofunc(void)
{

View File

@ -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)
{