Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2014 06:53:06 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273578 - head/contrib/netbsd-tests/lib/libc/sys
Message-ID:  <201410240653.s9O6r6ls038885@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410240653.s9O6r6ls038885>