Changeset 45628


Ignore:
Timestamp:
2015-05-08T14:09:26+02:00 (3 years ago)
Author:
kaloz
Message:

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

Signed-off-by: Jo-Philipp Wich <jow@…>
Signed-off-by: Imre Kaloz <kaloz@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/include/getline.h

    r35900 r45628  
    3333#include <string.h> 
    3434 
    35 #if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) 
     35#ifdef __FreeBSD__ 
     36#include <osreldate.h> 
     37#endif 
     38 
     39#if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) && !(defined(__FreeBSD__) && __FreeBSD_version >= 800000) 
    3640/* 
    3741 * Emulate glibc getline() via BSD fgetln(). 
Note: See TracChangeset for help on using the changeset viewer.