(FreeBSD) Build fixes for urbdrc

This commit is contained in:
Kyle Evans 2019-08-19 09:25:43 -05:00 committed by akallabeth
parent 0ad87d98ca
commit d796920f8f

View File

@ -510,7 +510,7 @@ static void* urbdrc_search_usb_device(void* arg)
size_t val_size, tm;
long idVendor, idProduct;
long busnum, devnum;
int action, success, error, found, on_close;
int action, success, found, on_close;
struct sockaddr_un sun;
DWORD status;
UINT32 error;
@ -536,7 +536,7 @@ static void* urbdrc_search_usb_device(void* arg)
/* Get the file descriptor (fd) for the monitor.
This fd will get passed to select() */
mon_fd = CreateFileDescriptorEvent(NULL, TRUE, FALSE, devd_skt);
mon_fd = CreateFileDescriptorEvent(NULL, TRUE, FALSE, devd_skt, WINPR_FD_READ);
listobj[0] = searchman->term_event;
listobj[1] = mon_fd;