configure.ac: Check for poll.h, and for nfds_t on Darwin
authorPeter Stuge <peter@stuge.se>
Sat, 30 Oct 2010 20:07:37 +0000 (22:07 +0200)
committerPeter Stuge <peter@stuge.se>
Mon, 13 Jun 2011 20:01:42 +0000 (22:01 +0200)
commita120747d561929682cd0276ea4c13fb22fad8554
tree856be9c9f9538047d9e2b41aaac1d102f3c266de
parent21d03d12f92c0d9bd7990861ca0ebf5009f82799
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.
configure.ac
libusb/io.c
libusb/libusbi.h
libusb/os/darwin_usb.c
libusb/os/linux_usbfs.c
libusb/os/poll_posix.h
libusb/os/poll_windows.h
libusb/os/windows_usb.c