libpurple/win32/libc_internal.h

changeset 27854
77d4e2090a5d
parent 24231
6907b62f25fe
child 29491
31c1d615772e
--- a/libpurple/win32/libc_internal.h	Sat Jul 18 00:40:40 2009 +0000
+++ b/libpurple/win32/libc_internal.h	Sat Jul 18 02:32:04 2009 +0000
@@ -120,10 +120,14 @@
 # define ifc_req ifc_ifcu.ifcu_req /* Array of structures.  */
 
 /* sys/time.h */
+#if __MINGW32_MAJOR_VERSION < 3 || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION < 10)
 struct timezone {
 	int tz_minuteswest;
 	int tz_dsttime;
 };
+#else
+#    include <sys/time.h>
+#endif
 int wpurple_gettimeofday(struct timeval *p, struct timezone *z);
 
 /* time.h */

mercurial