svn commit: r273578 - head/contrib/netbsd-tests/lib/libc/sys

Garrett Cooper ngie at FreeBSD.org
Fri Oct 24 06:53:07 UTC 2014


Author: ngie
Date: Fri Oct 24 06:53:06 2014
New Revision: 273578
URL: https://svnweb.freebsd.org/changeset/base/273578

Log:
  - Add inttypes.h and stdint.h in lieu of int_limits.h from NetBSD
  - Use #include "h_macros.h" instead of relative path analog
  
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c

Modified: head/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c	Fri Oct 24 06:27:45 2014	(r273577)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c	Fri Oct 24 06:53:06 2014	(r273578)
@@ -63,7 +63,9 @@ __RCSID("$NetBSD: t_clock_gettime.c,v 1.
 #include <sys/param.h>
 #include <sys/sysctl.h>
 
+#if defined(__NetBSD__)
 #include <machine/int_limits.h>
+#endif
 
 #include <atf-c.h>
 #include <errno.h>
@@ -73,7 +75,13 @@ __RCSID("$NetBSD: t_clock_gettime.c,v 1.
 #include <time.h>
 #include <unistd.h>
 
+#if defined(__NetBSD__)
 #include "../../../h_macros.h"
+#else
+#include <limits.h>
+#include <stdint.h>
+#include "h_macros.h"
+#endif
 
 #define MINPOSDIFF	15000000	/* 15 ms for now */
 #define TIMEOUT		5


More information about the svn-src-head mailing list