diff options
Diffstat (limited to 'libusb/os/poll_posix.h')
-rw-r--r-- | libusb/os/poll_posix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libusb/os/poll_posix.h b/libusb/os/poll_posix.h index 01702f3..48c4904 100644 --- a/libusb/os/poll_posix.h +++ b/libusb/os/poll_posix.h @@ -4,6 +4,12 @@ #include <poll.h> #include <unistd.h> +#ifdef HAVE_NFDS_T +typedef nfds_t usbi_nfds_t; +#else +typedef unsigned int usbi_nfds_t; +#endif + #define usbi_write write #define usbi_read read #define usbi_close close |