opnsense-ports/comms/lirc/files/patch-daemons__lircmd.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

23 lines
447 B
C

--- 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)
{