summaryrefslogtreecommitdiff
path: root/accessibility/wlsunset/files
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-04-25 20:56:30 +0000
committerJan Beich <jbeich@FreeBSD.org>2021-04-27 00:24:51 +0000
commitf9c701cefcb495b3b0788092dbd18b24f4185548 (patch)
treec7ad08f7cc22bae78e843fff83dd7f8c3628e880 /accessibility/wlsunset/files
parentmultimedia/intel-media-sdk: update to 21.2.0 (diff)
accessibility/wlsunset: update to 0.2.0
Changes: https://git.sr.ht/~kennylevinsen/wlsunset/refs/0.2.0
Diffstat (limited to 'accessibility/wlsunset/files')
-rw-r--r--accessibility/wlsunset/files/patch-main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/accessibility/wlsunset/files/patch-main.c b/accessibility/wlsunset/files/patch-main.c
new file mode 100644
index 000000000000..f8c592112448
--- /dev/null
+++ b/accessibility/wlsunset/files/patch-main.c
@@ -0,0 +1,17 @@
+Unbreak on FreeBSD after https://git.sr.ht/~kennylevinsen/wlsunset/commit/111181106e41
+See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=24590
+
+main.c:710:47: error: use of undeclared identifier 'timezone'
+ *time = tm.tm_hour * 3600 + tm.tm_min * 60 + timezone;
+
+--- main.c.orig 2021-04-25 20:56:30 UTC
++++ main.c
+@@ -707,7 +707,7 @@ static int parse_time_of_day(const char *s, time_t *ti
+ if (strptime(s, "%H:%M", &tm) == NULL) {
+ return -1;
+ }
+- *time = tm.tm_hour * 3600 + tm.tm_min * 60 + timezone;
++ *time = tm.tm_hour * 3600 + tm.tm_min * 60 + tm.tm_gmtoff;
+ return 0;
+ }
+