mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-19 12:54:36 -04:00
Enable timerfd on sunos when available
Closes #432 Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
This commit is contained in:
committed by
Nathan Hjelm
parent
18a5f99ad3
commit
e8e80368b7
@@ -1637,6 +1637,13 @@ sunos_usb_get_status(int fd)
|
||||
return (status);
|
||||
}
|
||||
|
||||
#ifdef USBI_TIMERFD_AVAILABLE
|
||||
static clockid_t op_get_timerfd_clockid(void)
|
||||
{
|
||||
return CLOCK_MONOTONIC;
|
||||
}
|
||||
#endif
|
||||
|
||||
const struct usbi_os_backend usbi_backend = {
|
||||
.name = "Solaris",
|
||||
.caps = 0,
|
||||
@@ -1669,6 +1676,9 @@ const struct usbi_os_backend usbi_backend = {
|
||||
.clear_transfer_priv = sunos_clear_transfer_priv,
|
||||
.handle_transfer_completion = sunos_handle_transfer_completion,
|
||||
.clock_gettime = sunos_clock_gettime,
|
||||
#ifdef USBI_TIMERFD_AVAILABLE
|
||||
.get_timerfd_clockid = op_get_timerfd_clockid,
|
||||
#endif
|
||||
.device_priv_size = sizeof(sunos_dev_priv_t),
|
||||
.device_handle_priv_size = sizeof(sunos_dev_handle_priv_t),
|
||||
.transfer_priv_size = sizeof(sunos_xfer_priv_t),
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11322
|
||||
#define LIBUSB_NANO 11323
|
||||
|
||||
Reference in New Issue
Block a user