check availability of poll.h header at configuration time, and include

it when sys/poll.h is unavailable
This commit is contained in:
Yang Tse 2008-01-22 14:52:54 +00:00
parent 727e23322f
commit bdb2beb8e4
5 changed files with 17 additions and 3 deletions

View file

@ -85,6 +85,8 @@
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#elif defined(HAVE_POLL_H)
#include <poll.h>
#endif
#ifdef HAVE_LOCALE_H