summaryrefslogtreecommitdiff
path: root/games-util/xboxdrv/files/github-144.patch
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-04-11 10:40:08 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-04-11 10:40:08 +0300
commit375cf3d9ce71cc0a55f319dd2188c1bf03d7b057 (patch)
treeb27cc2183fb2467843678a77eef1a95f9b41a493 /games-util/xboxdrv/files/github-144.patch
parentf151afa59c71f98664e94f4e974ebabac6daf757 (diff)
xboxdrv-scm
Diffstat (limited to 'games-util/xboxdrv/files/github-144.patch')
-rw-r--r--games-util/xboxdrv/files/github-144.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/games-util/xboxdrv/files/github-144.patch b/games-util/xboxdrv/files/github-144.patch
new file mode 100644
index 0000000..5782e1a
--- /dev/null
+++ b/games-util/xboxdrv/files/github-144.patch
@@ -0,0 +1,15 @@
+diff -Naur xboxdrv-linux-0.8.5.orig/src/usb_gsource.cpp xboxdrv-linux-0.8.5/src/usb_gsource.cpp
+--- xboxdrv-linux-0.8.5.orig/src/usb_gsource.cpp 2013-04-07 18:27:49.000000000 +0100
++++ xboxdrv-linux-0.8.5/src/usb_gsource.cpp 2016-07-02 12:35:41.692355904 +0100
+@@ -174,7 +174,10 @@
+ gboolean
+ USBGSource::on_source()
+ {
+- libusb_handle_events(NULL);
++ struct timeval to;
++ to.tv_sec = 0;
++ to.tv_usec = 0;
++ libusb_handle_events_timeout_completed(NULL, &to, NULL);
+ return TRUE;
+ }
+