- fixed GH #130: Patch: prefer sysconf over sysctlbyname
- fixed GH #131: Patch: no timezone global var on OpenBSD
This commit is contained in:
aleks-f
2013-03-19 21:15:21 -05:00
parent ab952e689d
commit 2c5601ea69
3 changed files with 8 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ public:
int timeZone()
{
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(POCO_ANDROID) // no timezone global var
#if defined(__APPLE__) || defined(__FreeBSD__) || defined (__OpenBSD__) || defined(POCO_ANDROID) // no timezone global var
std::time_t now = std::time(NULL);
struct std::tm t;
gmtime_r(&now, &t);