Do not call timerfd functions when timerfd is not being used
commit4630fc22cff8ad3e1afa9b223378c0aabe282b5c
authorPeter Stuge <peter@stuge.se>
Mon, 13 Feb 2012 15:59:51 +0000 (13 16:59 +0100)
committerPeter Stuge <peter@stuge.se>
Mon, 13 Feb 2012 19:00:35 +0000 (13 20:00 +0100)
treeab430138f39f0cbd04d59a0d17d8b75dabbb56a3
parentc40f3df1efbb9232b525e5f675746762ca2304b8
Do not call timerfd functions when timerfd is not being used

When libusb was built with timerfd support but used on a system
without timerfd support the library would hang indefinitely on
completion of the first transfer, since timerfd functions were
being called unconditionally and the error returned when timerfd
was not being used caused a confused internal state.

Many thanks to Ivo Smits for looking into the issue, proposing
an initial solution, and helping with testing! Fixes #73.
libusb/io.c