Skip to content
Snippets Groups Projects
Commit 03b080c3 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

make TTimeStamp compile again on FreeBSD. Fixes issue 97341.

git-svn-id: http://root.cern.ch/svn/root/trunk@45957 27541ba8-7e3a-0410-8455-c3a389f83636
parent d94847ed
No related branches found
No related tags found
No related merge requests found
...@@ -411,7 +411,18 @@ Int_t TTimeStamp::GetZoneOffset() ...@@ -411,7 +411,18 @@ Int_t TTimeStamp::GetZoneOffset()
#if defined(R__WINGCC) #if defined(R__WINGCC)
return _timezone; return _timezone;
#else #else
#if !defined(R__FBSD) && !defined(R__OBSD)
return timezone; // unix has extern long int return timezone; // unix has extern long int
#else
time_t tp = 0;
time(&tp);
#ifdef _REENTRANT
struct tm buf;
return -localtime_r(&tp, &buf)->tm_gmtoff;
#else
return -localtime(&tp)->tm_gmtoff;
#endif
#endif
#endif #endif
#else #else
_tzset(); _tzset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment