* Don't use poll() on OS X. It's implemented on top of select in 10.3 (no
biggie), so we gain nothing there. On 10.4, it's implemented directly, but doesn't support devices (which messes up pty support and IO forwarding). This commit was SVN r5621.
Этот коммит содержится в:
родитель
d6bd2fdeab
Коммит
fc16d60236
@ -78,7 +78,21 @@ fi
|
||||
havepoll=no
|
||||
havertsig=no
|
||||
AC_CHECK_FUNCS(poll, [havepoll=yes], )
|
||||
if test "x$havepoll" = "xyes" ; then
|
||||
case "$host" in
|
||||
*apple-darwin*)
|
||||
haveworkingpoll=0
|
||||
;;
|
||||
*)
|
||||
if test "$havepoll" = "yes" ; then
|
||||
haveworkingpoll=1
|
||||
else
|
||||
haveworkingpoll=0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
AC_DEFINE_UNQUOTED([HAVE_WORKING_POLL], [$haveworkingpoll],
|
||||
[Whether poll works for file descriptors and devices])
|
||||
if test "x$havepoll" = "xyes" -a "$haveworkingpoll" = "1" ; then
|
||||
# OMPI: Don't use AC_LIBOBJ
|
||||
sources="poll.c $sources"
|
||||
needsignal=yes
|
||||
|
@ -69,7 +69,7 @@
|
||||
#if defined(HAVE_SELECT) && HAVE_SELECT
|
||||
extern const struct ompi_eventop ompi_selectops;
|
||||
#endif
|
||||
#if defined(HAVE_POLL) && HAVE_POLL
|
||||
#if defined(HAVE_POLL) && HAVE_POLL && HAVE_WORKING_POLL
|
||||
extern const struct ompi_eventop ompi_pollops;
|
||||
#endif
|
||||
#if defined(HAVE_RTSIG) && HAVE_RTSIG
|
||||
@ -104,7 +104,7 @@ static const struct ompi_eventop *ompi_eventops[] = {
|
||||
&ompi_rtsigops,
|
||||
#endif
|
||||
#endif
|
||||
#if defined(HAVE_POLL) && HAVE_POLL
|
||||
#if defined(HAVE_POLL) && HAVE_POLL && HAVE_WORKING_POLL
|
||||
&ompi_pollops,
|
||||
#endif
|
||||
#if defined(HAVE_SELECT) && HAVE_SELECT
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user