diff options
Diffstat (limited to 'winsup/mingw/include/sys/time.h')
-rw-r--r-- | winsup/mingw/include/sys/time.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/mingw/include/sys/time.h b/winsup/mingw/include/sys/time.h index f3dcc3646..17a3960a9 100644 --- a/winsup/mingw/include/sys/time.h +++ b/winsup/mingw/include/sys/time.h @@ -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 |