Author: kaloz Date: 2015-05-08 14:09:26 +0200 (Fri, 08 May 2015) New Revision: 45628
Modified: trunk/tools/include/getline.h Log: tools: host/include/getline.h: fix FreeBSD 8.0+ support Signed-off-by: Jo-Philipp Wich <[email protected]> Signed-off-by: Imre Kaloz <[email protected]> Modified: trunk/tools/include/getline.h =================================================================== --- trunk/tools/include/getline.h 2015-05-08 10:45:26 UTC (rev 45627) +++ trunk/tools/include/getline.h 2015-05-08 12:09:26 UTC (rev 45628) @@ -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. _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
