diff --git a/stdtime/localtime.c b/stdtime/localtime.c index 2f9d412fda9f576de0eb1412987ef0bc359b9f21..7adaabf1df2255a08382ae0da7cf31dbf8f3534f 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 */