diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-08 04:13:19 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-08 04:13:19 +0000 |
commit | ccc2fc8a310b16ad7a978d07ebf40535e6bf3ee9 (patch) | |
tree | ac7748259e8c5731376a912004a76e59ab0b1c3d /stdtime/localtime.c | |
parent | d0b521d57cacdaccc50268c8415defeeeb6fded2 (diff) |
issue #5569 minus lock.h changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7024 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'stdtime/localtime.c')
-rwxr-xr-x | stdtime/localtime.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/stdtime/localtime.c b/stdtime/localtime.c index 67dc71d2c..db125d9e6 100755 --- a/stdtime/localtime.c +++ b/stdtime/localtime.c @@ -77,6 +77,12 @@ static const char elsieid[] = "@(#)localtime.c 7.57"; #define OPEN_MODE O_RDONLY #endif /* !defined O_BINARY */ +#ifdef SOLARIS +#undef TM_ZONE +#undef TM_GMTOFF +#endif + +#ifdef TM_ZONE #ifndef WILDABBR /*! \note * Someone might make incorrect use of a time zone abbreviation: @@ -101,6 +107,7 @@ static const char elsieid[] = "@(#)localtime.c 7.57"; #endif /* !defined WILDABBR */ static char wildabbr[] = "WILDABBR"; +#endif /* TM_ZONE */ /*! \brief FreeBSD defines 'zone' in 'struct tm' as non-const, so don't declare this string as const. */ @@ -130,12 +137,6 @@ struct lsinfo { #define MY_TZNAME_MAX 255 #endif /* !defined TZNAME_MAX */ -#ifdef SOLARIS -#undef TM_ZONE -#undef TM_GMTOFF -#endif - - struct state { char name[TZ_STRLEN_MAX + 1]; int leapcnt; |