From b5e25ccf29dc4093c7db1455f24b43a71f3a3d1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Wed, 14 Feb 2018 12:03:47 +0100
Subject: [PATCH] Sql.mysql: localtime(0)->timesone is not a constant
 expression.

---
 .gitattributes                  | 1 -
 lib/modules/Sql.pmod/mysql.pike | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/.gitattributes b/.gitattributes
index eb6a2c9d23..99fc8d3f8f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -119,7 +119,6 @@ testfont binary
 /lib/modules/SSL.pmod/sslfile.pike foreign_ident
 /lib/modules/SSL.pmod/state.pike foreign_ident
 /lib/modules/Sql.pmod/Sql.pike foreign_ident
-/lib/modules/Sql.pmod/mysql.pike foreign_ident
 /lib/modules/Sql.pmod/mysql_result.pike foreign_ident
 /lib/modules/Sql.pmod/odbc.pike foreign_ident
 /lib/modules/Sql.pmod/odbc_result.pike foreign_ident
diff --git a/lib/modules/Sql.pmod/mysql.pike b/lib/modules/Sql.pmod/mysql.pike
index 9ae04af7e3..3d1563ad35 100644
--- a/lib/modules/Sql.pmod/mysql.pike
+++ b/lib/modules/Sql.pmod/mysql.pike
@@ -1,12 +1,12 @@
 /*
- * $Id: mysql.pike,v 1.12 2000/09/28 03:39:08 hubbe Exp $
+ * $Id$
  *
  * Glue for the Mysql-module
  */
 
 //.
 //. File:	mysql.pike
-//. RCSID:	$Id: mysql.pike,v 1.12 2000/09/28 03:39:08 hubbe Exp $
+//. RCSID:	$Id$
 //. Author:	Henrik Grubbstr�m (grubba@idonex.se)
 //.
 //. Synopsis:	Implements the glue to the Mysql-module.
@@ -37,7 +37,7 @@ string quote(string s)
 // handles time in this local timezone. They map the special zero
 // time/date spec to 0.
 
-private constant timezone = localtime (0)->timezone;
+private int timezone = localtime (0)->timezone;
 
 //. - encode_time
 //.   Converts a system time value to an appropriately formatted time
-- 
GitLab