Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/accessibility/wlsunset/files/patch-main.c
16151 views
1
Unbreak on FreeBSD after https://git.sr.ht/~kennylevinsen/wlsunset/commit/111181106e41
2
See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=24590
3
4
main.c:710:47: error: use of undeclared identifier 'timezone'
5
*time = tm.tm_hour * 3600 + tm.tm_min * 60 + timezone;
6
7
--- main.c.orig 2021-04-25 20:56:30 UTC
8
+++ main.c
9
@@ -707,7 +707,7 @@ static int parse_time_of_day(const char *s, time_t *ti
10
if (strptime(s, "%H:%M", &tm) == NULL) {
11
return -1;
12
}
13
- *time = tm.tm_hour * 3600 + tm.tm_min * 60 + timezone;
14
+ *time = tm.tm_hour * 3600 + tm.tm_min * 60 + tm.tm_gmtoff;
15
return 0;
16
}
17
18
19