diff options
author | Andrés M <andmarti1424@users.noreply.github.com> | 2020-02-06 13:49:43 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 13:49:43 -0300 |
commit | 9fd6b92d869585b100737c995ad32925b1960dad (patch) | |
tree | ae795f634334f7a94f5e9a89fbe7bb28386ac92e /src/conf.c | |
parent | 3b5a803cc3f8a0bfb2885b1582140e5cfbb9f5e5 (diff) | |
parent | af9b07773cee59a07464d52b7330831a3be87331 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]; |