aboutsummaryrefslogtreecommitdiffstats
path: root/stdtime/localtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdtime/localtime.c')
-rwxr-xr-xstdtime/localtime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdtime/localtime.c b/stdtime/localtime.c
index 1f6309e3f..7c474acf1 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 */