aboutsummaryrefslogtreecommitdiff
path: root/sysutils/lookat/files/patch-getline.c
blob: fd8c4cd50ac45f7abbae528c86a52da5b0dea41e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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>