aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2012-09-01 05:13:05 +0800
committernox <nox@FreeBSD.org>2012-09-01 05:13:05 +0800
commitbf0662e2c373721ce03363624812d178b7f27e1c (patch)
treeeea71e35c4e554b9e15174bc474cda4f6fa532bc /comms
parentd071f203468083d524a9793af72de53e502e57f7 (diff)
downloadfreebsd-ports-gnome-bf0662e2c373721ce03363624812d178b7f27e1c.tar.gz
freebsd-ports-gnome-bf0662e2c373721ce03363624812d178b7f27e1c.tar.zst
freebsd-ports-gnome-bf0662e2c373721ce03363624812d178b7f27e1c.zip
Fix build on recent(ish) 9.x (after r235405 i.e. MFC of r228631.)
Diffstat (limited to 'comms')
-rw-r--r--comms/uartlirc/files/patch-uartlirc_tty.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/comms/uartlirc/files/patch-uartlirc_tty.c b/comms/uartlirc/files/patch-uartlirc_tty.c
new file mode 100644
index 000000000000..6aa24822df88
--- /dev/null
+++ b/comms/uartlirc/files/patch-uartlirc_tty.c
@@ -0,0 +1,20 @@
+--- uartlirc_tty.c.orig
++++ uartlirc_tty.c
+@@ -55,7 +55,7 @@ static cn_init_t uartlirc_cninit;
+ static cn_term_t uartlirc_cnterm;
+ static cn_getc_t uartlirc_cngetc;
+ static cn_putc_t uartlirc_cnputc;
+-#if __FreeBSD_version >= 1000000
++#if __FreeBSD_version >= 900506
+ static cn_grab_t uartlirc_cngrab;
+ static cn_ungrab_t uartlirc_cnungrab;
+ #endif
+@@ -112,7 +112,7 @@ uartlirc_cnterm(struct consdev *cp)
+ uartlirc_term(cp->cn_arg);
+ }
+
+-#if __FreeBSD_version >= 1000000
++#if __FreeBSD_version >= 900506
+ static void
+ uartlirc_cngrab(struct consdev *cp)
+ {