pidgin: 46b7c46b: Use mingw's <sys/time.h> to define "stru..
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Fri Jul 17 22:35:43 EDT 2009
-----------------------------------------------------------------
Revision: 46b7c46baa295c4b070c418345d40ed4add22267
Ancestor: 5a775580c19958eee0160678ce54a697032041ab
Author: nosnilmot at pidgin.im
Date: 2009-07-18T02:32:04
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/46b7c46baa295c4b070c418345d40ed4add22267
Modified files:
libpurple/win32/libc_internal.h
ChangeLog:
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)
-------------- next part --------------
============================================================
--- libpurple/win32/libc_internal.h c1e3623efc974931caeddc55c367d1353553c0c7
+++ libpurple/win32/libc_internal.h 4dd06adb13e0c556ed1afc243f3d0cb23320a750
@@ -120,10 +120,14 @@ struct ifconf
# 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 */
More information about the Commits
mailing list