[vlc-commits] lirc: build fix
Pierre Ynard
git at videolan.org
Sun Jan 23 18:19:11 CET 2011
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Jan 23 18:19:05 2011 +0100| [942ab6c31026a84e4c5503cb8e68a5135dfc2f2b] | committer: Pierre Ynard
lirc: build fix
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=942ab6c31026a84e4c5503cb8e68a5135dfc2f2b
---
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 aee33c3..e8c4780 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