]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Compat fix for Solaris
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 20 Feb 2008 17:53:00 +0000 (17:53 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 20 Feb 2008 17:53:00 +0000 (17:53 +0000)
(closes issue #12022)
 Reported by: asgaroth
 Patches:
       20080219__bug12022.diff.txt uploaded by Corydon76 (license 14)
 Tested by: asgaroth

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@103845 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/stdtime/localtime.c

index 16274c8ece1af532d8c96fbbd54357086858a8f2..1da0fe012e46cd799c4c2b857a85fe696371179a 100644 (file)
@@ -1133,7 +1133,9 @@ static struct tm *localsub(const time_t *timep, const long offset, struct tm *tm
        */
        result = timesub(&t, ttisp->tt_gmtoff, sp, tmp);
        tmp->tm_isdst = ttisp->tt_isdst;
+#ifndef SOLARIS /* Solaris doesn't have this element */
        tmp->tm_gmtoff = ttisp->tt_gmtoff;
+#endif
 #ifdef TM_ZONE
        tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind];
 #endif /* defined TM_ZONE */