diff --git a/libusb/os/threads_posix.c b/libusb/os/threads_posix.c index 20f279ad..e18e69be 100644 --- a/libusb/os/threads_posix.c +++ b/libusb/os/threads_posix.c @@ -24,6 +24,8 @@ # include #elif defined(__APPLE__) # include +#elif defined(__CYGWIN__) +# include #endif #ifdef _XOPEN_SOURCE @@ -73,6 +75,8 @@ int usbi_get_tid(void) #elif defined(__APPLE__) ret = mach_thread_self(); mach_port_deallocate(mach_task_self(), ret); +#elif defined(__CYGWIN__) + ret = GetCurrentThreadId(); #endif /* TODO: NetBSD thread ID support */ return ret; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 74a81bc0..cd14787c 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10504 +#define LIBUSB_NANO 10505