From 672898f40e0f337bb0dc173387ac4914530b5596 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Tue, 10 Aug 2010 10:31:13 +0200 Subject: [PATCH] [FreeTDM][2/2] for FreeBSD: ftdm_interrupt_multiple_wait() linux poll version should also work on all BSD variants (and Solaris too), add FreeBSD for now. (Build-tested on FreeBSD-8.1) NOTE: We may want to drop the #elif completely and just go for an #else here instead. --- libs/freetdm/src/ftdm_threadmutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/freetdm/src/ftdm_threadmutex.c b/libs/freetdm/src/ftdm_threadmutex.c index a0fef1cc00..61051df4ef 100644 --- a/libs/freetdm/src/ftdm_threadmutex.c +++ b/libs/freetdm/src/ftdm_threadmutex.c @@ -434,7 +434,7 @@ FT_DECLARE(ftdm_status_t) ftdm_interrupt_multiple_wait(ftdm_interrupt_t *interru } /* fall-through to FTDM_SUCCESS at the end of the function */ } -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) int res = 0; char pipebuf[255]; struct pollfd ints[size*2];