Files
nixpkgs/pkgs/by-name/di/direvent/fix-darwin.patch
Palmer Cox 2993c6d9a3 direvent: Fix on Darwin
There are two issues:

The first problem is that there is an implicit definition of a function
which is by default an error with the compiler that is used on Darwin.

There is an upstream submitted patch
(https://puszcza.gnu.org.ua/bugs/?256) to fix this issue, but its from
2015 and thus doesn't seem likely to be applied anytime soon. Since its
just a comment, we can't retrieve it with fetchpatch or similar. The
patch is very simple and so we can vendor it here.

The second problem is that the 5.5 release of direvent uses
clock_nanosleep which is only available on Linux. There is an upstream
fix for that issue which is in git but not a released version - so, we
can pick that up. Unfortunately, it appears that we have to vendor this
patch since attempts to use fetchpatch to get it from the source
(https://git.gnu.org.ua/direvent.git/patch/?id=f6042ca2e240a27a20e405de49755f350ca95e7b)
failed due to bot protection functionality on that site.
2026-08-13 15:15:49 -04:00

13 lines
544 B
Diff
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
diff --git i/src/direvent.h w/src/direvent.h
index 18ab4c8..3c49500 100644
--- i/src/direvent.h
+++ w/src/direvent.h
@@ -313,6 +313,7 @@ int sigv_set_all(void (*handler)(int), int sigc, int *sigv,
struct sigaction *retsa);
int sigv_set_tab(int sigc, struct sigtab *sigtab, struct sigaction *retsa);
int sigv_set_action_tab(int sigc, struct sigtab *sigtab, struct sigaction *sa);
+int sigv_restore_tab(int sigc, struct sigtab *sigtab, struct sigaction *sa);
struct grecs_locus;
int filpatlist_add(filpatlist_t *fptr, char const *arg,