Commit b5569228 authored by Pierre Ynard's avatar Pierre Ynard

lirc: build fix

(cherry picked from commit 942ab6c31026a84e4c5503cb8e68a5135dfc2f2b)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent aac8118d
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
* Preamble * Preamble
*****************************************************************************/ *****************************************************************************/
#include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
...@@ -154,10 +155,12 @@ static void Run( intf_thread_t *p_intf ) ...@@ -154,10 +155,12 @@ static void Run( intf_thread_t *p_intf )
/* Wait for data */ /* Wait for data */
struct pollfd ufd = { .fd = p_sys->i_fd, .events = POLLIN, .revents = 0 }; struct pollfd ufd = { .fd = p_sys->i_fd, .events = POLLIN, .revents = 0 };
if( poll( &ufd, 1, -1 ) == -1 ) if( poll( &ufd, 1, -1 ) == -1 )
{
if( errno == EINTR ) if( errno == EINTR )
continue; continue;
else else
break; break;
}
/* Process */ /* Process */
int canc = vlc_savecancel(); 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