Re: poll4bsd
| From: | Melvyn Sopacua | Date: | Sun, 14 Apr 2002 20:38:48 +0000 |
| Subject: | Re: poll4bsd | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82793@lists.php.net to get a copy of this message | ||
On Sun, 14 Apr 2002, Wez Furlong wrote:
> Thanks for the poll emulation, but it doesn't make sense to
> include it in PHP: main/network.c only uses poll()
> to check for POLLHUP, which is not implemented by that
> library.
Hmm, that explains the pth trouble.
I guess I better move that lib somewhere more obscure - I do need it for
one or two programs, now to find out which :-).
> Thats the reason why I added it in addition to the select()
> call that (indirectly!) follows the poll call.
>
> The solution then, is to change the #if HAVE_SYS_POLL_H to
> something that detects a native poll implementation in libc.
AC_CHECK_DEFINE(POLLHUP, sys/poll.h) ?