diff options
-rw-r--r-- | comms/uartlirc/files/patch-uartlirc_subr.c | 20 |
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) |