mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
f1df7aba8f
This lifts the files almost verbatim (the changes being running though gst-indent and fixing the FSF address) from the upstream respository. Therefore this commit reverts some GStreamer-specific patches to check that will be reintroduced next. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=727826
19 lines
287 B
C
19 lines
287 B
C
#include "libcompat.h"
|
|
|
|
#if !defined(localtime_r)
|
|
|
|
struct tm *
|
|
localtime_r (const time_t * clock, struct tm *result)
|
|
{
|
|
struct tm *now = localtime (clock);
|
|
|
|
if (now == NULL) {
|
|
return NULL;
|
|
} else {
|
|
*result = *now;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
#endif /* !defined(localtime_r) */
|