Skip to content

Patch: no timezone global var on OpenBSD #131

@sthen

Description

@sthen
--- 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);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions