mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
* configure.ac: Add test to check for poll emulation
* Source/NSRunLoop.h: Don't use poll if we're just emulating. * Source/unix/GSRunLoopCtxt.m: Idem. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20788 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b00056dd18
commit
cdbd239478
7 changed files with 335 additions and 154 deletions
14
configure.ac
14
configure.ac
|
@ -568,7 +568,19 @@ AC_CHECK_FUNCS(syslog)
|
|||
#--------------------------------------------------------------------
|
||||
AC_CHECK_HEADERS(poll.h)
|
||||
AC_CHECK_FUNCS(poll)
|
||||
|
||||
have_poll=no
|
||||
if test $ac_cv_header_poll_h = yes; then
|
||||
have_poll=yes
|
||||
AC_MSG_CHECKING(for poll emulation)
|
||||
AC_EGREP_CPP(emulating_poll, [#include "config/config.poll.c"],
|
||||
have_poll=no,)
|
||||
if test $have_poll = yes; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_DEFINE(HAVE_POLL_F,1, [ Define if poll is NOT emulated via select])
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
fi
|
||||
fi
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Check for pthread.h (only when building on Darwin machines)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue