Skip to content
Snippets Groups Projects
Commit 41d3787b authored by kaloz's avatar kaloz
Browse files

tools: host/include/getline.h: fix FreeBSD 8.0+ support


Signed-off-by: default avatarJo-Philipp Wich <jow@openwrt.org>
Signed-off-by: default avatarImre Kaloz <kaloz@openwrt.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45628 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 6b693253
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,11 @@
#include <stdlib.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().
* Note that outsize is not changed unless memory is allocated.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment