Date: Thu, 30 Oct 2014 22:15:10 +0000 (UTC) From: Juergen Lock <nox@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r371775 - head/comms/uartlirc/files Message-ID: <201410302215.s9UMFAww079742@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410302215.s9UMFAww079742>