diff options
Diffstat (limited to 'sysutils/lookat')
-rw-r--r-- | sysutils/lookat/files/patch-getline.c | 22 |
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> |