tools: host/include/getline.h: fix FreeBSD 8.0+ support
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45628
This commit is contained in:
parent
4a3850b397
commit
c1a8ff39fc
@ -32,7 +32,11 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L)
|
#ifdef __FreeBSD__
|
||||||
|
#include <osreldate.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) && !(defined(__FreeBSD__) && __FreeBSD_version >= 800000)
|
||||||
/*
|
/*
|
||||||
* Emulate glibc getline() via BSD fgetln().
|
* Emulate glibc getline() via BSD fgetln().
|
||||||
* Note that outsize is not changed unless memory is allocated.
|
* Note that outsize is not changed unless memory is allocated.
|
||||||
|
Loading…
Reference in New Issue
Block a user