summaryrefslogtreecommitdiff
path: root/comms/lirc/files/patch-daemons__lircmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'comms/lirc/files/patch-daemons__lircmd.c')
-rw-r--r--comms/lirc/files/patch-daemons__lircmd.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/comms/lirc/files/patch-daemons__lircmd.c b/comms/lirc/files/patch-daemons__lircmd.c
new file mode 100644
index 000000000000..c95f14cdca41
--- /dev/null
+++ b/comms/lirc/files/patch-daemons__lircmd.c
@@ -0,0 +1,23 @@
+--- daemons/lircmd.c.orig
++++ daemons/lircmd.c
+@@ -277,9 +277,9 @@ setup_error:
+ return -1;
+ }
+
++#ifdef __linux__
+ void write_uinput(__u16 type, __u16 code, __s32 value)
+ {
+-#ifdef __linux__
+ struct input_event event;
+
+ memset(&event, 0, sizeof(event));
+@@ -299,8 +299,8 @@ void write_uinput(__u16 type, __u16 code
+ syslog(LOG_ERR, "%m");
+ }
+ }
+-#endif
+ }
++#endif
+
+ void msend(int dx, int dy, int dz, int rep, int buttp, int buttr)
+ {