Skip to content

Commit

Permalink
tools: host/include/getline.h: fix FreeBSD 8.0+ support
Browse files Browse the repository at this point in the history
Signed-off-by: Jo-Philipp Wich <[email protected]>
Signed-off-by: Imre Kaloz <[email protected]>

SVN-Revision: 45628
  • Loading branch information
kaloz committed May 8, 2015
1 parent 4a3850b commit c1a8ff3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/include/getline.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c1a8ff3

Please sign in to comment.