提交 672898f4 authored 作者: Stefan Knoblich's avatar Stefan Knoblich

[FreeTDM][2/2] for FreeBSD: ftdm_interrupt_multiple_wait() linux poll version…

[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.
上级 ae12913f
...@@ -434,7 +434,7 @@ FT_DECLARE(ftdm_status_t) ftdm_interrupt_multiple_wait(ftdm_interrupt_t *interru ...@@ -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 */ /* fall-through to FTDM_SUCCESS at the end of the function */
} }
#elif defined(__linux__) #elif defined(__linux__) || defined(__FreeBSD__)
int res = 0; int res = 0;
char pipebuf[255]; char pipebuf[255];
struct pollfd ints[size*2]; struct pollfd ints[size*2];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论