diff options
author | Peter Stuge <peter@stuge.se> | 2010-10-30 22:07:37 +0200 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2011-06-13 22:01:42 +0200 |
commit | a120747d561929682cd0276ea4c13fb22fad8554 (patch) | |
tree | 856be9c9f9538047d9e2b41aaac1d102f3c266de /libusb/io.c | |
parent | 21d03d12f92c0d9bd7990861ca0ebf5009f82799 (diff) | |
download | libusb-a120747d561929682cd0276ea4c13fb22fad8554.tar.gz |
configure.ac: Check for poll.h, and for nfds_t on Darwin
On Linux, assume nfds_t is always available.
On Darwin, fall back to unsigned int when poll() exists but there
is no nfds_t, such as on Mac OS X before 10.4.
On Windows (both MinGW and Cygwin), always use unsigned int instead
of nfds_t, and don't check for poll.h because we use our own poll()
implementation.
Diffstat (limited to 'libusb/io.c')
-rw-r--r-- | libusb/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/io.c b/libusb/io.c index 2856324..dd56857 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -1793,7 +1793,7 @@ static int handle_events(struct libusb_context *ctx, struct timeval *tv) { int r; struct usbi_pollfd *ipollfd; - nfds_t nfds = 0; + POLL_NFDS_TYPE nfds = 0; struct pollfd *fds; int i = -1; int timeout_ms; |