#ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_TIME_H #include #endif struct tm *gmtime_r(const time_t *timep, struct tm *result) { /* no thread safety. */ *result = *gmtime(timep); return result; }