From 05944abaa4f550b6819bbdd2632c74c251ec3f31 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 14 Feb 2010 12:00:42 +0000 Subject: [PATCH] Make work without including . According to the last POSIX specification that contained , this header should also typedef time_t properly. Also add a proper comment to the final #endif. --- sys/sys/timeb.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sys/sys/timeb.h b/sys/sys/timeb.h index 2a88f6b3f7d8..59aa4666b026 100644 --- a/sys/sys/timeb.h +++ b/sys/sys/timeb.h @@ -38,6 +38,13 @@ #ifndef _SYS_TIMEB_H_ #define _SYS_TIMEB_H_ +#include + +#ifndef _TIME_T_DECLARED +typedef __time_t time_t; +#define _TIME_T_DECLARED +#endif + /* The ftime(2) system call structure -- deprecated. */ struct timeb { time_t time; /* seconds since the Epoch */ @@ -54,4 +61,4 @@ int ftime(struct timeb *); __END_DECLS #endif /* _KERNEL */ -#endif +#endif /* !_SYS_TIMEB_H_ */