aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2014-10-31 06:15:09 +0800
committernox <nox@FreeBSD.org>2014-10-31 06:15:09 +0800
commiteb3bf7815a8c15d19f502487de2c7a22804650d0 (patch)
tree04c251dd175f5029ad58fe0294ba9359a6e8fd59
parent5e5f5c3f065b196191cf204872f547b0ad9298c2 (diff)
downloadfreebsd-ports-gnome-eb3bf7815a8c15d19f502487de2c7a22804650d0.tar.gz
freebsd-ports-gnome-eb3bf7815a8c15d19f502487de2c7a22804650d0.tar.zst
freebsd-ports-gnome-eb3bf7815a8c15d19f502487de2c7a22804650d0.zip
(Attempt to) fix build on head.
Submitted by: beefy1 via pkg-fallout
-rw-r--r--comms/uartlirc/files/patch-uartlirc_subr.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/comms/uartlirc/files/patch-uartlirc_subr.c b/comms/uartlirc/files/patch-uartlirc_subr.c
new file mode 100644
index 000000000000..1bcc6623d5e2
--- /dev/null
+++ b/comms/uartlirc/files/patch-uartlirc_subr.c
@@ -0,0 +1,20 @@
+--- uartlirc_subr.c.orig
++++ uartlirc_subr.c
+@@ -210,9 +210,17 @@ uartlirc_getenv(int devtype, struct uart
+ * port (resp).
+ */
+ if (devtype == UARTLIRC_DEV_CONSOLE)
++#if __FreeBSD_version >= 1100039
++ spec = kern_getenv("hw.uart.console");
++#else
+ spec = getenv("hw.uart.console");
++#endif
+ else if (devtype == UARTLIRC_DEV_DBGPORT)
++#if __FreeBSD_version >= 1100039
++ spec = kern_getenv("hw.uart.dbgport");
++#else
+ spec = getenv("hw.uart.dbgport");
++#endif
+ else
+ spec = NULL;
+ if (spec == NULL)