Commit 942ab6c3 authored by Pierre Ynard's avatar Pierre Ynard

lirc: build fix

parent 204c6621
......@@ -25,6 +25,7 @@
* Preamble
*****************************************************************************/
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_CONFIG_H
......@@ -154,10 +155,12 @@ static void Run( intf_thread_t *p_intf )
/* Wait for data */
struct pollfd ufd = { .fd = p_sys->i_fd, .events = POLLIN, .revents = 0 };
if( poll( &ufd, 1, -1 ) == -1 )
{
if( errno == EINTR )
continue;
else
break;
}
/* Process */
int canc = vlc_savecancel();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment