openbsd-ports/net/poco/patches/patch-Foundation_src_Timezone_UNIX_cpp
sebastia ca6ddd823f Import poco
POCO C++ libraries for network based applications

C++ class libraries for network-centric, portable applications, 
integrated perfectly with the C++ Standard Library. Includes 
network protocols (Sockets, HTTP, FTP, SMTP, POP3, etc.) and an 
XML parser.

With a lot of feedback from landry@ 
Finally OK from dcoppa@
2010-07-28 18:13:00 +00:00

13 lines
545 B
Plaintext

$OpenBSD: patch-Foundation_src_Timezone_UNIX_cpp,v 1.1.1.1 2010/07/28 18:13:01 sebastia Exp $
--- Foundation/src/Timezone_UNIX.cpp.orig Fri Jan 15 13:13:34 2010
+++ Foundation/src/Timezone_UNIX.cpp Mon Jul 19 12:09:13 2010
@@ -52,7 +52,7 @@ class TZInfo (public)
int timeZone()
{
- #if defined(__APPLE__) || defined(__FreeBSD__) // no timezone global var
+ #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) // no timezone global var
std::time_t now = std::time(NULL);
struct std::tm t;
gmtime_r(&now, &t);