diff options
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r-- | libusb/libusbi.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h index 2d2f71a..1eee278 100644 --- a/libusb/libusbi.h +++ b/libusb/libusbi.h @@ -479,11 +479,11 @@ int usbi_signal_event(struct libusb_context *ctx); int usbi_clear_event(struct libusb_context *ctx); /* Internal abstraction for poll (needs struct usbi_transfer on Windows) */ -#if defined(OS_LINUX) || defined(OS_DARWIN) || defined(OS_OPENBSD) || defined(OS_NETBSD) || defined(OS_HAIKU) -#include <unistd.h> -#include "os/poll_posix.h" -#elif defined(OS_WINDOWS) || defined(OS_WINCE) -#include "os/poll_windows.h" +#if defined(OS_WINDOWS) +# include <os/poll_windows.h> +#else +# include <unistd.h> +# include <os/poll_posix.h> #endif #if (defined(OS_WINDOWS) || defined(OS_WINCE)) && !defined(__GNUC__) @@ -1047,6 +1047,7 @@ struct usbi_os_backend { extern const struct usbi_os_backend * const usbi_backend; extern const struct usbi_os_backend linux_usbfs_backend; +extern const struct usbi_os_backend solaris_backend; extern const struct usbi_os_backend darwin_backend; extern const struct usbi_os_backend openbsd_backend; extern const struct usbi_os_backend netbsd_backend; |