From: jow Date: Wed, 1 Feb 2012 21:10:53 +0000 (+0000) Subject: [backfire] tools: merge r27916 (OS X 10.7 getline fix) X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=05c6fa7208e57281c0d24ac39812c9bf8a9be731 [backfire] tools: merge r27916 (OS X 10.7 getline fix) git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@29983 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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.