opnsense-ports/comms/uartlirc/files/patch-uartlirc_subr.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
513 B
C

--- 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)