diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 0ff89275f..25b148c01 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -178,8 +178,8 @@ tr_freeMessageList( tr_msg_list * list ) *** **/ -static struct tm * -tr_localtime_r( time_t *_clock, struct tm *_result ) +struct tm * +tr_localtime_r( const time_t *_clock, struct tm *_result ) { #ifdef HAVE_LOCALTIME_R return localtime_r( _clock, _result ); diff --git a/libtransmission/utils.h b/libtransmission/utils.h index 555b20b2e..65fa036c5 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -466,6 +466,9 @@ void* tr_int2ptr( int ); */ char* tr_strratio( char * buf, size_t buflen, double ratio, const char * infinity ); +struct tm * tr_localtime_r( const time_t *_clock, struct tm *_result ); + + #ifdef __cplusplus }