Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2016 00:20:03 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419289 - head/sysutils/lookat/files
Message-ID:  <201607300020.u6U0K3a5041887@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <osreldate.h>
++#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 <osreldate.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607300020.u6U0K3a5041887>