diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2017-01-14 06:49:17 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2017-01-14 06:49:17 +0000 |
commit | 63d1fd5970ec814904aa0f4580b10a0d302d08b2 (patch) | |
tree | 5f0c7c782c83b41c6850995c0c8a4033eb5dd0f5 /contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c | |
parent | ed2159c92c0214d224e13d4452e576a92d29911e (diff) | |
parent | a567518138e0e2fa7177c60e241e8b8e4bb468d5 (diff) |
Notes
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c | 16 |
1 files changed, 4 insertions, 12 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 229c343c7a8b4..3a18286091b38 100644 --- a/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c +++ b/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_clock_gettime.c,v 1.1 2011/10/15 06:42:16 jruoho Exp $ */ +/* $NetBSD: t_clock_gettime.c,v 1.3 2017/01/13 21:30:41 christos Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -58,30 +58,22 @@ #include <sys/cdefs.h> __COPYRIGHT("@(#) Copyright (c) 2008\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: t_clock_gettime.c,v 1.1 2011/10/15 06:42:16 jruoho Exp $"); +__RCSID("$NetBSD: t_clock_gettime.c,v 1.3 2017/01/13 21:30:41 christos Exp $"); #include <sys/param.h> #include <sys/sysctl.h> -#ifdef __NetBSD__ -#include <machine/int_limits.h> -#endif - #include <atf-c.h> #include <errno.h> +#include <limits.h> #include <stdio.h> +#include <stdint.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> -#ifdef __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 |