X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fwigyori.git;a=blobdiff_plain;f=tools%2Finclude%2Fgetline.h;fp=tools%2Finclude%2Fgetline.h;h=02df6c2f7900734aa9798c3eeef0cc6e9607ae88;hp=b9a3f7150fd792e9007a8303d35ab009f12df05e;hb=bf64b1ccb636ef6155b4635900cc5c8e4021dc76;hpb=2105acbe2804f5a065145701e5414ee923fd60a9 diff --git a/tools/include/getline.h b/tools/include/getline.h index b9a3f7150f..02df6c2f79 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.