diff options
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 | 8 |
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 |