From: Stefan Knoblich Date: Tue, 10 Aug 2010 08:31:13 +0000 (+0200) Subject: [FreeTDM][2/2] for FreeBSD: ftdm_interrupt_multiple_wait() linux poll version should... X-Git-Tag: v1.2-rc1~526^2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=672898f40e0f337bb0dc173387ac4914530b5596;p=thirdparty%2Ffreeswitch.git [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. --- 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];