svn commit: r371775 - head/comms/uartlirc/files
Juergen Lock
nox at FreeBSD.org
Thu Oct 30 22:15:10 UTC 2014
Author: nox
Date: Thu Oct 30 22:15:09 2014
New Revision: 371775
URL: https://svnweb.freebsd.org/changeset/ports/371775
QAT: https://qat.redports.org/buildarchive/r371775/
Log:
(Attempt to) fix build on head.
Submitted by: beefy1 via pkg-fallout
Added:
head/comms/uartlirc/files/patch-uartlirc_subr.c (contents, props changed)
Added: head/comms/uartlirc/files/patch-uartlirc_subr.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/uartlirc/files/patch-uartlirc_subr.c Thu Oct 30 22:15:09 2014 (r371775)
@@ -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)
More information about the svn-ports-all
mailing list