aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-06-22 21:57:44 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2006-06-22 21:57:44 +0000
commit083f3e4a23a83c4f62754da41a9bbac4a95cf1a7 (patch)
tree2b32a77a278b13f9877eb30aaa34e4c06a16e1a4
parentf489b5943c8f8655b0a3caddd38114111576ab35 (diff)
downloadnewlib-083f3e4a23a83c4f62754da41a9bbac4a95cf1a7.zip
newlib-083f3e4a23a83c4f62754da41a9bbac4a95cf1a7.tar.gz
newlib-083f3e4a23a83c4f62754da41a9bbac4a95cf1a7.tar.bz2
* include/sys/time.h (struct timezone): Define.
* include/time.h (_timezone): Correct comment.
-rw-r--r--winsup/mingw/ChangeLog5
-rw-r--r--winsup/mingw/include/sys/time.h9
-rw-r--r--winsup/mingw/include/time.h3
3 files changed, 16 insertions, 1 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index e4c24c1..9632eb3 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/sys/time.h (struct timezone): Define.
+ * include/time.h: Correct comment about timezone.
+
2006-06-18 Danny Smith <dannysmith@users.sourceforge.net>
* configure.in (AC_CONFIG_AUX_DIR): Remove.
diff --git a/winsup/mingw/include/sys/time.h b/winsup/mingw/include/sys/time.h
index f3dcc36..17a3960 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
diff --git a/winsup/mingw/include/time.h b/winsup/mingw/include/time.h
index 2b41a8c..13d4d16 100644
--- a/winsup/mingw/include/time.h
+++ b/winsup/mingw/include/time.h
@@ -181,7 +181,8 @@ __MINGW_IMPORT char *tzname[2];
of macros. */
#define daylight _daylight
-/* NOTE: timezone not defined because it would conflict with sys/timeb.h.
+/* NOTE: timezone not defined as macro because it would conflict with
+ struct timezone in sys/time.h.
Also, tzname used to a be macro, but now it's in moldname. */
__MINGW_IMPORT char *tzname[2];