svn commit: r274577 - head/contrib/netbsd-tests/lib/libpthread

Garrett Cooper ngie at FreeBSD.org
Sun Nov 16 05:13:41 UTC 2014


Author: ngie
Date: Sun Nov 16 05:13:39 2014
New Revision: 274577
URL: https://svnweb.freebsd.org/changeset/base/274577

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

Modified:
  head/contrib/netbsd-tests/lib/libpthread/t_condwait.c
  head/contrib/netbsd-tests/lib/libpthread/t_once.c
  head/contrib/netbsd-tests/lib/libpthread/t_sem.c

Modified: head/contrib/netbsd-tests/lib/libpthread/t_condwait.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libpthread/t_condwait.c	Sun Nov 16 05:13:10 2014	(r274576)
+++ head/contrib/netbsd-tests/lib/libpthread/t_condwait.c	Sun Nov 16 05:13:39 2014	(r274577)
@@ -40,6 +40,10 @@ __RCSID("$NetBSD: t_condwait.c,v 1.4 201
 
 #include "isqemu.h"
 
+#ifdef __FreeBSD__
+#include <sys/time.h>
+#endif
+
 #define WAITTIME 2	/* Timeout wait secound */
 
 static const int debug = 1;

Modified: head/contrib/netbsd-tests/lib/libpthread/t_once.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libpthread/t_once.c	Sun Nov 16 05:13:10 2014	(r274576)
+++ head/contrib/netbsd-tests/lib/libpthread/t_once.c	Sun Nov 16 05:13:39 2014	(r274577)
@@ -46,6 +46,10 @@ static int x;
 
 #define NTHREADS 25
 
+#ifdef __FreeBSD__
+#include <sys/time.h>
+#endif
+
 static void
 ofunc(void)
 {

Modified: head/contrib/netbsd-tests/lib/libpthread/t_sem.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libpthread/t_sem.c	Sun Nov 16 05:13:10 2014	(r274576)
+++ head/contrib/netbsd-tests/lib/libpthread/t_sem.c	Sun Nov 16 05:13:39 2014	(r274577)
@@ -111,6 +111,10 @@ __RCSID("$NetBSD: t_sem.c,v 1.8 2014/11/
 
 static sem_t sem;
 
+#ifdef __FreeBSD__
+#include <sys/time.h>
+#endif
+
 ATF_TC(named);
 ATF_TC_HEAD(named, tc)
 {


More information about the svn-src-all mailing list