freebsd-ports/comms/lirc/files/patch-daemons::lircmd.c
Juergen Lock 0edca97428 - Update comms/lirc to 0.9.0p1_4 in order to be able to use the lirc
support in webcamd svn (for mceusb-based receivers/transmitters and
  USB DVB tuner remotes supported by the Linux code), and enable
  support for a few more USB devices while we're at it tho of those
  only an FTDI-based one was tested:

	http://www.huitsing.nl/irftdi/ [1]

- Fix plist for audio/rhythmbox and multimedia/totem and
  add missing LIRC_{CFLAGS,LIBS} variables to CONFIGURE_ENV for
  multimedia/xine when building them with (optional) lirc support. [2]

- Chase liblirc_client shlib version bump for ports depdending on it
  and bump PORTREVISIONs for ports depending on it by default.

Approved by:	portmgr (miwi) [2]
Thanks to:	Warren Block <wblock@wonkity.com> for testing [1]
2011-02-26 22:11:54 +00: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)
{