diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-01-07 01:28:09 +0100 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-01-16 20:04:46 +0100 |
commit | ca9de74ce4b13b979ea5f24c88c111a2f9b24dfa (patch) | |
tree | 992f9833e9b9223083bc8b7d210bdf93b174148b /x11-toolkits/gtk-sharp20/files/patch-gdk_glue_windowmanager.c | |
parent | sysutils/lsd: Update to 0.23.1 (diff) |
x11/mate-panel: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
x11/mate-panel failed to build with clang 15:
clock-location.c:454:22: error: incompatible pointer to integer conversion assigning to 'glong' (aka 'long') from 'char *(int, int)' [-Wint-conversion]
sys_timezone = timezone;
^ ~~~~~~~~
clock-location.c:462:24: error: incompatible pointer to integer conversion assigning to 'glong' (aka 'long') from 'char *(int, int)' [-Wint-conversion]
local_timezone = timezone;
^ ~~~~~~~~
This is because 'timezone' as a global external variable does not exist
on FreeBSD: it is a glibc-ism. Use struct tm's tm_gmtoff field instead,
which has its sign reversed from the glibc global. There is also no need
to manually account for DST, as tm_gmtoff includes that.
PR: 268795
Approved by: portmgr (tcberner)
MFH: 2023Q1
Diffstat (limited to 'x11-toolkits/gtk-sharp20/files/patch-gdk_glue_windowmanager.c')
0 files changed, 0 insertions, 0 deletions