From owner-svn-ports-all@freebsd.org Sat Jul 30 00:20:04 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DD4DBA8AD7; Sat, 30 Jul 2016 00:20:04 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 D1F3A1E64; Sat, 30 Jul 2016 00:20:03 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u6U0K38q041888; Sat, 30 Jul 2016 00:20:03 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u6U0K3a5041887; Sat, 30 Jul 2016 00:20:03 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201607300020.u6U0K3a5041887@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sat, 30 Jul 2016 00:20:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r419289 - head/sysutils/lookat/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.22 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: Sat, 30 Jul 2016 00:20:04 -0000 Author: bapt Date: Sat Jul 30 00:20:02 2016 New Revision: 419289 URL: https://svnweb.freebsd.org/changeset/ports/419289 Log: Do not redefine getline(3) on version that already have it Added: head/sysutils/lookat/files/ head/sysutils/lookat/files/patch-getline.c (contents, props changed) Added: head/sysutils/lookat/files/patch-getline.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/lookat/files/patch-getline.c Sat Jul 30 00:20:02 2016 (r419289) @@ -0,0 +1,22 @@ +--- getline.c.orig 2015-12-28 06:38:39 UTC ++++ getline.c +@@ -168,7 +168,9 @@ getstr (lineptr, n, stream, terminator, + + #ifndef __OpenBSD__ + #ifndef __NetBSD__ +- ++#if defined(__FreeBSD__) ++#include ++#if __FreeBSD_version < 900000 + int + getline (lineptr, n, stream) + char **lineptr; +@@ -177,6 +179,8 @@ getline (lineptr, n, stream) + { + return getstr (lineptr, n, stream, '\n', 0); + } ++#endif ++#endif + + #if defined(__FreeBSD__) + #include