From c1a8ff39fc9dc66db7cde605baa2326744ca8e8c Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Fri, 8 May 2015 12:09:26 +0000 Subject: tools: host/include/getline.h: fix FreeBSD 8.0+ support Signed-off-by: Jo-Philipp Wich Signed-off-by: Imre Kaloz SVN-Revision: 45628 --- tools/include/getline.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/include') diff --git a/tools/include/getline.h b/tools/include/getline.h index 3ac2171..7b320f7 100644 --- a/tools/include/getline.h +++ b/tools/include/getline.h @@ -32,7 +32,11 @@ #include #include -#if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) +#ifdef __FreeBSD__ +#include +#endif + +#if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) && !(defined(__FreeBSD__) && __FreeBSD_version >= 800000) /* * Emulate glibc getline() via BSD fgetln(). * Note that outsize is not changed unless memory is allocated. -- cgit v1.1