From 08c05709a3d11e031332e8b8ff6b688152e0dcad Mon Sep 17 00:00:00 2001 From: kleink Date: Thu, 17 Mar 2005 20:51:00 +0000 Subject: [PATCH] Pull in (XPG>=4.2, POSIX>=2001). --- sys/sys/time.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/sys/time.h b/sys/sys/time.h index af652aa305f3..e254a25d26a5 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -1,4 +1,4 @@ -/* $NetBSD: time.h,v 1.45 2005/02/26 22:25:34 perry Exp $ */ +/* $NetBSD: time.h,v 1.46 2005/03/17 20:51:00 kleink Exp $ */ /* * Copyright (c) 1982, 1986, 1993 @@ -228,6 +228,12 @@ void realtimerexpire(void *); #else /* !_KERNEL */ #ifndef _STANDALONE +#if (_POSIX_C_SOURCE - 0) >= 200112L || \ + (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ + (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE) +#include +#endif + #include #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)