On Mon, Aug 10, 2009 at 07:46:00AM +0200, Petr Salinger wrote: > Package: lirc > Version: 0.8.3-4 > Severity: important > Tags: patch > User: debian-...@lists.debian.org > Usertags: kfreebsd > > Hi, > > the current version fails to build on GNU/kFreeBSD. > > It needs small tweak, see bellow. >
Looking more closely at the existing patches, I have seen that 06_libtool_kfreebsd can be safely removed, as well as some parts of 05_non_linux. I have attached a new 05_non_linux file, which contains the remaining needed parts for GNU/kFreeBSD support, plus the patch from Petr Salinger. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurel...@aurel32.net http://www.aurel32.net
make lirc buildable on non-Linux architectures. © 2006 Aurelien Jarno <aure...@debian.org> © 2008 Stefan Lippers-Hollmann <s....@gmx.de> --- a/drivers/lirc.h +++ b/drivers/lirc.h @@ -7,6 +7,10 @@ #include <asm/types.h> #include <linux/ioctl.h> #else +#include <features.h> +#if defined (__GLIBC__) +#include <sys/ioctl.h> +#endif #include <sys/types.h> #if defined(__NetBSD__) #include <sys/ioctl.h> --- a/tools/irpty.c +++ b/tools/irpty.c @@ -146,6 +146,10 @@ return; } +#undef RESET +#undef RAW +#undef CBREAK + static struct termios save_termios; static int ttysavefd = -1; static enum { --- a/daemons/hw-types.c +++ a/daemons/hw-types.c @@ -110,7 +110,9 @@ &hw_dvico, #endif &hw_ea65, +#ifdef HAVE_LINUX_I2C_DEV_H &hw_i2cuser, +#endif #ifdef HAVE_IGUANAIR &hw_iguanaIR, #endif