From 9c9527faa922fff90f04a7c22788a282b4b02fa1 Mon Sep 17 00:00:00 2001 From: Sebastian Wiedenroth Date: Sun, 18 Jan 2015 02:30:28 +0100 Subject: Fix build on SunOS - the struct dirent d_type is not available on SunOS - tm_gmtoff is not a POSIX field --- src/lua/lua_task.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lua/lua_task.c') 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); } -- cgit v1.2.3