mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
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.
13 lines
544 B
Diff
13 lines
544 B
Diff
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,
|