mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 14:37:15 +08:00
40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
From b5569228dd32aa848d2c8eed7e3f50d3a8522b8d Mon Sep 17 00:00:00 2001
|
|
From: Pierre Ynard <linkfanel@yahoo.fr>
|
|
Date: Sun, 23 Jan 2011 18:19:05 +0100
|
|
Subject: [PATCH 1/1] lirc: build fix
|
|
(cherry picked from commit 942ab6c31026a84e4c5503cb8e68a5135dfc2f2b)
|
|
|
|
Signed-off-by: Pierre Ynard <linkfanel@yahoo.fr>
|
|
---
|
|
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();
|
|
--
|
|
1.7.2.3
|
|
|