Mercurial > pidgin.yaz
changeset 27677:f3e06bdac3d1
Use mingw's <sys/time.h> to define "struct timezone" when it is new enough.
hopefully this doesn't break anything (it helps cross-compiling OTR)
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 18 Jul 2009 02:32:04 +0000 |
parents | fceac27fcad1 |
children | faf80efd10a9 |
files | libpurple/win32/libc_internal.h |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 */