diff options
Diffstat (limited to 'stdtime/localtime.c')
-rwxr-xr-x | stdtime/localtime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stdtime/localtime.c b/stdtime/localtime.c index 2f9d412fd..7adaabf1d 100755 --- a/stdtime/localtime.c +++ b/stdtime/localtime.c @@ -89,7 +89,9 @@ static const char elsieid[] = "@(#)localtime.c 7.57"; static char wildabbr[] = "WILDABBR"; -static const char gmt[] = "GMT"; +/* FreeBSD defines 'zone' in 'struct tm' as non-const, so don't declare this + string as const. */ +static char gmt[] = "GMT"; struct ttinfo { /* time type information */ long tt_gmtoff; /* GMT offset in seconds */ |