tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 795ed4df0824349fc94a37efe36d2a1beb5146f7
parent d377f98a50d6ecaa32dbe09637d64b860913513d
Author: mh <mh+fedora@scrit.ch>
Date:   Thu, 27 Nov 2025 10:53:10 +0100

Fix #41170 - include signal.h if enabling seccomp

Newer glibcs (from 6f120faf649f03a261e3e64d5b5991030383c1b3 on) define
`SYS_SECCOMP` to an enum.

* https://gitlab.torproject.org/tpo/core/tor/-/issues/41170#note_3290238
* https://github.com/bminor/glibc/commit/6f120faf649f03a261e3e64d5b5991030383c1b3

Diffstat:
Msrc/lib/sandbox/sandbox.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/lib/sandbox/sandbox.h b/src/lib/sandbox/sandbox.h @@ -16,6 +16,9 @@ #include "lib/cc/torint.h" #ifndef SYS_SECCOMP +#ifdef HAVE_SIGNAL_H +#include <signal.h> +#endif /** * Used by SIGSYS signal handler to check if the signal was issued due to a