From owner-svn-ports-all@FreeBSD.ORG Thu Oct 30 22:15:10 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75559172; Thu, 30 Oct 2014 22:15:10 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6122CAB0; Thu, 30 Oct 2014 22:15:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9UMFAGU079743; Thu, 30 Oct 2014 22:15:10 GMT (envelope-from nox@FreeBSD.org) Received: (from nox@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9UMFAww079742; Thu, 30 Oct 2014 22:15:10 GMT (envelope-from nox@FreeBSD.org) Message-Id: <201410302215.s9UMFAww079742@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: nox set sender to nox@FreeBSD.org using -f From: Juergen Lock Date: Thu, 30 Oct 2014 22:15:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r371775 - head/comms/uartlirc/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 22:15:10 -0000 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)