[vlc-commits] lirc: build fix
Pierre Ynard
git at videolan.org
Mon Jan 24 10:45:24 CET 2011
vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Jan 23 18:19:05 2011 +0100| [b5569228dd32aa848d2c8eed7e3f50d3a8522b8d] | committer: Pierre Ynard
lirc: build fix
(cherry picked from commit 942ab6c31026a84e4c5503cb8e68a5135dfc2f2b)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=b5569228dd32aa848d2c8eed7e3f50d3a8522b8d
---
modules/control/lirc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/control/lirc.c b/modules/control/lirc.c
index 6270abb..5c585bc 100644
--- a/modules/control/lirc.c
+++ b/modules/control/lirc.c
@@ -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();
More information about the vlc-commits
mailing list