aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-18 13:39:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-18 13:39:48 +0000
commite9e647d5cea96f31d2feb5f0341cb605529d2074 (patch)
tree8c901123c0921b9dd658ae969ce439157e24eb22 /src/lua/lua_task.c
parent146debb5020659b4cbfdced4ca6d651de162dd4b (diff)
parent9c9527faa922fff90f04a7c22788a282b4b02fa1 (diff)
downloadrspamd-e9e647d5cea96f31d2feb5f0341cb605529d2074.tar.gz
rspamd-e9e647d5cea96f31d2feb5f0341cb605529d2074.zip
Merge pull request #129 from wiedi/master
Fix build on SunOS
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 6d2ded9ec..7eed0a395 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -1763,7 +1763,9 @@ lua_task_get_date (lua_State *L)
tt = tim;
localtime_r (&tt, &t);
+#if !defined(__sun)
t.tm_gmtoff = 0;
+#endif
t.tm_isdst = 0;
tim = mktime (&t);
}