aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-07-30 00:20:02 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-07-30 00:20:02 +0000
commita70268c775128f4a7a28e53943e59a8923c67fa7 (patch)
treed11355c73a0351fac714d992cd43954681abeeec /sysutils
parent7c7b05f10a8ee8d3758c3f99643287103fe6c9b8 (diff)
downloadports-a70268c775128f4a7a28e53943e59a8923c67fa7.tar.gz
ports-a70268c775128f4a7a28e53943e59a8923c67fa7.zip
Do not redefine getline(3) on version that already have it
Notes
Notes: svn path=/head/; revision=419289
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/lookat/files/patch-getline.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/lookat/files/patch-getline.c b/sysutils/lookat/files/patch-getline.c
new file mode 100644
index 000000000000..fd8c4cd50ac4
--- /dev/null
+++ b/sysutils/lookat/files/patch-getline.c
@@ -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>