1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Looks like I never tested irrecord... This patch fixes it.

This commit is contained in:
Juergen Lock 2012-09-09 13:54:16 +00:00
parent 53ed3e8d67
commit 986c8e7401
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303966
2 changed files with 21 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= uartlirc
PORTVERSION= 0.3
PORTREVISION= 1
CATEGORIES= comms kld
MASTER_SITES= LOCAL/nox \
http://people.freebsd.org/~nox/tmp/

View File

@ -0,0 +1,20 @@
--- uartlirc_lircdev.c.orig
+++ uartlirc_lircdev.c
@@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$");
#include <sys/conf.h>
#include <sys/cons.h>
#include <sys/fcntl.h>
+#include <sys/filio.h>
#include <sys/interrupt.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
@@ -117,6 +118,9 @@ uartlirc_lircdev_ioctl(struct cdev *dev,
case LIRC_GET_FEATURES:
*arg = LIRC_CAN_REC_MODE2;
return (0);
+ case FIONBIO:
+ case FIOASYNC:
+ return (0);
default:
return ENOTTY;
}