From 9a92ca3b637d41709ded56a5161ff9ff7505f677 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Nov 2012 09:39:18 +0100 Subject: [PATCH] tevent: define TEVENT_NUM_SIGNALS based on SIGRTMAX On FreeBSD SIGRTMIN is 65... Signed-off-by: Stefan Metzmacher --- lib/tevent/tevent_signal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tevent/tevent_signal.c b/lib/tevent/tevent_signal.c index 77ef7b0599a5..6d746fc7eccc 100644 --- a/lib/tevent/tevent_signal.c +++ b/lib/tevent/tevent_signal.c @@ -30,7 +30,11 @@ #include "tevent_internal.h" #include "tevent_util.h" +#ifdef SIGRTMAX +#define TEVENT_NUM_SIGNALS (SIGRTMAX + 1) +#else #define TEVENT_NUM_SIGNALS 64 +#endif /* maximum number of SA_SIGINFO signals to hold in the queue. NB. This *MUST* be a power of 2, in order for the ring buffer -- 2.34.1