From 8006aae6f8b446ff22fcb40fbe587bc8b4ca99c9 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 23 Mar 2009 21:47:57 +0000 Subject: - Fix build after addition of adding getdelim(), getline() PR: 132982 Submitted by: Florian Smeets --- sysutils/lookat/files/patch-getline.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sysutils/lookat/files/patch-getline.c (limited to 'sysutils/lookat/files/patch-getline.c') diff --git a/sysutils/lookat/files/patch-getline.c b/sysutils/lookat/files/patch-getline.c new file mode 100644 index 000000000000..90e40f6c30ca --- /dev/null +++ b/sysutils/lookat/files/patch-getline.c @@ -0,0 +1,33 @@ +--- ./getline.c.orig 2009-03-23 18:42:33.000000000 +0000 ++++ ./getline.c 2009-03-23 19:03:49.000000000 +0000 +@@ -45,7 +45,15 @@ + } + + #else /* ! have getdelim */ ++ ++#if defined(__FreeBSD__) ++#include ++#if __FreeBSD_version <= 800066 + int ++#else ++ssize_t ++#endif ++#endif + getdelim (lineptr, n, delimiter, stream); + + # include +@@ -150,7 +158,14 @@ + return getstr (lineptr, n, stream, '\n', 0); + } + ++#if defined(__FreeBSD__) ++#include ++#if __FreeBSD_version <= 800066 + int ++#else ++ssize_t ++#endif ++#endif + getdelim (lineptr, n, delimiter, stream) + char **lineptr; + size_t *n; -- cgit v1.2.3