svn commit: r419289 - head/sysutils/lookat/files
Baptiste Daroussin
bapt at FreeBSD.org
Sat Jul 30 00:20:04 UTC 2016
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>
More information about the svn-ports-all
mailing list