summaryrefslogtreecommitdiff
path: root/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2025-08-02 13:16:38 +0900
committerHiroki Tagato <tagattie@FreeBSD.org>2025-08-02 13:20:30 +0900
commitd9a1aaa98d16108d5910f84f0a2f933d792ab64e (patch)
treeaa750e97ed9fb34bee368afa3adf10aafae4ecd2 /accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
parentaudio/mac: Update to 11.22 (diff)
accessibility/hyprsunset: update to 0.3.1
While here: - mark as BROKEN on FreeBSD 13 It does not build with an error related to devel/date. - use hyprland-protocols from ports - add patch to unbreak build on system with libc++ 19 Changelog: - https://github.com/hyprwm/hyprsunset/releases/tag/v0.3.0 - https://github.com/hyprwm/hyprsunset/releases/tag/v0.3.1 Reported by: portscout
Diffstat (limited to 'accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp')
-rw-r--r--accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
new file mode 100644
index 000000000000..c8e22b0d7bfa
--- /dev/null
+++ b/accessibility/hyprsunset/files/patch-src_Hyprsunset.cpp
@@ -0,0 +1,25 @@
+--- src/Hyprsunset.cpp.orig 2025-07-24 17:32:18 UTC
++++ src/Hyprsunset.cpp
+@@ -5,9 +5,22 @@
+ #include <mutex>
+ #include <thread>
+ #include <chrono>
++#include <signal.h>
+ #include <sys/poll.h>
+ #include <sys/timerfd.h>
++#include <unistd.h>
+ #include <wayland-client-core.h>
++
++#if defined(_LIBCPP_VERSION) || defined(_LIBCPP_HAS_NO_TIME_ZONE_DATABASE)
++#pragma comment(lib, "date-tz")
++#include <date/tz.h>
++namespace std {
++ namespace chrono {
++ using date::current_zone;
++ using date::zoned_time;
++ }
++}
++#endif
+
+ #define TIMESPEC_NSEC_PER_SEC 1000000000L
+