# HG changeset patch # User Stu Tomlinson # Date 1247884324 0 # Node ID f3e06bdac3d1e9b6b17ff0d8b65d917f8e286749 # Parent fceac27fcad14713e2432354bc81c04b38ea86bd Use mingw's to define "struct timezone" when it is new enough. hopefully this doesn't break anything (it helps cross-compiling OTR) diff -r fceac27fcad1 -r f3e06bdac3d1 libpurple/win32/libc_internal.h --- 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 +#endif int wpurple_gettimeofday(struct timeval *p, struct timezone *z); /* time.h */