* include/sys/time.h (struct timezone): Define.

* include/time.h (_timezone): Correct comment.
This commit is contained in:
Danny Smith
2006-06-22 21:57:44 +00:00
parent f489b5943c
commit 083f3e4a23
3 changed files with 16 additions and 1 deletions

View File

@ -20,6 +20,15 @@ struct timeval {
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
#endif /* _TIMEVAL_DEFINED */
/* Provided for compatibility with code that assumes that
the presence of gettimeofday function implies a definition
of struct timezone. */
struct timezone
{
int tz_minuteswest; /* of Greenwich */
int tz_dsttime; /* type of dst correction to apply */
};
/*
Implementation as per:
The Open Group Base Specifications, Issue 6