* 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:
fedor 2005-02-23 22:17:54 +00:00
parent b00056dd18
commit cdbd239478
7 changed files with 335 additions and 154 deletions

View file

@ -21,7 +21,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_POLL_H
#ifdef HAVE_POLL_F
#include <poll.h>
#endif
#ifdef HAVE_UNISTD_H
@ -80,7 +80,7 @@ static const NSMapTableValueCallBacks WatcherMapValueCallBacks =
{
NSFreeMapTable(_wfdMap);
}
#ifdef HAVE_POLL
#ifdef HAVE_POLL_F
if (pollfds != 0)
{
objc_free(pollfds);
@ -164,7 +164,7 @@ static const NSMapTableValueCallBacks WatcherMapValueCallBacks =
return self;
}
#ifdef HAVE_POLL
#ifdef HAVE_POLL_F
static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
{