openbsd-ports/net/poco/patches/patch-Foundation_src_Timezone_UNIX_cpp
sthen 2f8d5a2364 update to poco 1.4.6p1, tested by sebastia@ on pre-64bit-time_t, probably
fixes this with 64bit time_t (though further testing needed)
2013-08-16 10:05:55 +00:00

16 lines
637 B
Plaintext

$OpenBSD: patch-Foundation_src_Timezone_UNIX_cpp,v 1.2 2013/08/16 10:05:55 sthen Exp $
https://github.com/pocoproject/poco/issues/131
--- Foundation/src/Timezone_UNIX.cpp.orig Wed Mar 6 19:45:52 2013
+++ Foundation/src/Timezone_UNIX.cpp Tue Mar 19 17:13:08 2013
@@ -52,7 +52,7 @@ class TZInfo (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);