summaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorSijmen J. Mulder <ik@sjmulder.nl>2019-12-24 13:26:37 +0100
committerSijmen J. Mulder <ik@sjmulder.nl>2019-12-24 13:26:37 +0100
commitaf9b07773cee59a07464d52b7330831a3be87331 (patch)
tree5611d21e8cc21160be636a749e8e0fd4c8916ffa /src/conf.c
parent8b93daf225644cff3b3d02a64de53846cf15e7b0 (diff)
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 056329e..80e7b92 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -98,8 +98,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];