summaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorAndrés M <andmarti1424@users.noreply.github.com>2020-02-06 13:49:43 -0300
committerGitHub <noreply@github.com>2020-02-06 13:49:43 -0300
commit9fd6b92d869585b100737c995ad32925b1960dad (patch)
treeae795f634334f7a94f5e9a89fbe7bb28386ac92e /src/conf.c
parent3b5a803cc3f8a0bfb2885b1582140e5cfbb9f5e5 (diff)
parentaf9b07773cee59a07464d52b7330831a3be87331 (diff)
Merge pull request #370 from sjmulder/pr/solaris
Solaris doesn't have tm_gmtoff
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index 5413f99..330abc2 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -99,8 +99,8 @@ void store_default_config_values() {
put(user_conf_d, "default_paste_from_clipboard_cmd", "");
#endif
- // we calc get gmtoffset
- #ifdef USELOCALE
+ // Calculate GMT offset (not on Solaris, doesn't have tm_gmtoff)
+ #if defined(USELOCALE) && !defined(__sun)
time_t t = time(NULL);
struct tm * lt = localtime(&t);
char strgmtoff[7];