ports/devel/libsigrok/files/patch-src_hardware_lascar-el-usb_protocol.c
Muhammad Moinur Rahman 841aab24c3 devel/libsigrok: Runtime fix
C/C++ Comments handling are broken in swig 4 which is a pending issue
for more than 2 years. Use this hack for now to skip parsing comments.

- Pet portclippy
2023-02-27 16:45:48 +01:00

12 lines
411 B
C

--- src/hardware/lascar-el-usb/protocol.c.orig 2019-12-25 20:29:19 UTC
+++ src/hardware/lascar-el-usb/protocol.c
@@ -513,8 +513,7 @@ SR_PRIV int lascar_el_usb_handle_events(int fd, int re
}
memset(&tv, 0, sizeof(struct timeval));
- libusb_handle_events_timeout_completed(drvc->sr_ctx->libusb_ctx, &tv,
- NULL);
+ libusb_handle_events_timeout(drvc->sr_ctx->libusb_ctx, &tv);
return TRUE;
}