summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-10-24 06:53:06 +0000
committerngie <ngie@FreeBSD.org>2014-10-24 06:53:06 +0000
commit0bd1a4ddbf8ea468bf4008788e0b8c9ae15bf93d (patch)
treededaaeec0940f134d9000de3f10885e01875695c /contrib/netbsd-tests/lib/libc
parentdf9d3cfbe51efddf1b10c9fec6b33aa5e1b9a90c (diff)
downloadFreeBSD-src-0bd1a4ddbf8ea468bf4008788e0b8c9ae15bf93d.zip
FreeBSD-src-0bd1a4ddbf8ea468bf4008788e0b8c9ae15bf93d.tar.gz
- 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
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
-rw-r--r--contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c b/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c
index 69890fd..37a4267 100644
--- a/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c
+++ b/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c
@@ -63,7 +63,9 @@ __RCSID("$NetBSD: t_clock_gettime.c,v 1.1 2011/10/15 06:42:16 jruoho Exp $");
#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.1 2011/10/15 06:42:16 jruoho Exp $");
#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
OpenPOWER on IntegriCloud