void-packages/srcpkgs/openbsd-file/patches/musl.patch

23 lines
472 B
Diff

--- a/file.c
+++ b/file.c
@@ -19,6 +19,7 @@
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <err.h>
#include <errno.h>
--- a/seccomp-sandbox.c
+++ b/seccomp-sandbox.c
@@ -109,6 +109,9 @@ static const struct sock_filter filt_insns[] = {
#ifdef __NR_write
SC_ALLOW(__NR_write),
#endif
+#ifdef __NR_writev
+ SC_ALLOW(__NR_writev),
+#endif
/* Default deny. */
BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL),