pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49762: archivers/zoo won't build on Solaris



>Number:         49762
>Category:       pkg
>Synopsis:       archivers/zoo won't build on Solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 20 05:55:00 +0000 2015
>Originator:     Brad Forschinger
>Release:        2014Q4
>Organization:
>Environment:
SunOS x 5.10 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
>Description:
"bsd.c", line 83: undefined struct/union member: tm_gmtoff
>How-To-Repeat:

>Fix:

From ctime(3c):

...
extern time_t timezone, altzone;
...
alternate time zone. The external variable timezone contains
the  difference,  in seconds, between UTC and local standard
time.  The external variable daylight indicates whether time
...

--- bsd.c.orig  Fri Mar 20 16:49:52 2015
+++ bsd.c       Fri Mar 20 16:50:02 2015
@@ -78,9 +78,13 @@
    struct tm *tm;
        if (retval != INV_VALUE)                                 /* if have cached value, return it */
                return retval;
+#if 0
        time(&lt);
        tm = localtime(&lt);
        retval = -tm->tm_gmtoff;
+#else
+       retval = timezone;
+#endif
        return retval;
 }
 



Home | Main Index | Thread Index | Old Index