X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/a6e38696e866f017f293899d2622a63147909df3..a53be8ccd233fd2e458f1e38b025a1a42ef5eb16:/tools/include/getline.h diff --git a/tools/include/getline.h b/tools/include/getline.h index b9a3f7150..02df6c2f7 100644 --- a/tools/include/getline.h +++ b/tools/include/getline.h @@ -27,12 +27,12 @@ * SUCH DAMAGE. */ -#ifndef __linux__ #include #include #include #include +#if !defined(__linux__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) /* * Emulate glibc getline() via BSD fgetln(). * Note that outsize is not changed unless memory is allocated.