GNOME Bugzilla – Bug 393310
[pango] localtime_r does not exist in MinGW
Last modified: 2007-01-08 13:33:49 UTC
The compilation of the pango plugin fails because localtime_r does not exists in Windows. A solution would be to implement that function. Something like: #ifdef WIN32 struct tm * localtime_r (const time_t *t, struct tm *tp) { struct tm *l = localtime (t); if (! l) return NULL; if (tp) *tp = *l; return tp; } #endif /* WIN32 */ I don't know if it can be a problem, but it seems that localtime is not threadsafe.
Should be fixed now: 2007-01-08 Tim-Philipp Müller <tim at centricular dot net> * configure.ac: Check if localtime_r() is available. * ext/pango/gstclockoverlay.c: (gst_clock_overlay_render_time): If localtime_r() is not available, fall back to localtime(). Should fix build on MingW (#393310). Please re-open if it's not (even after running autoregen.sh manually).