From: Jo-Philipp Wich Date: Wed, 1 Feb 2012 21:17:54 +0000 (+0000) Subject: mkimage: backport Darwin 10.7 fix from r27917 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b0bd73faf1f2b5d2c7af7d4c4c4c58cb331283e9;p=openwrt%2Fsvn-archive%2Fopenwrt.git mkimage: backport Darwin 10.7 fix from r27917 SVN-Revision: 29984 --- diff --git a/tools/mkimage/patches/100-portability.patch b/tools/mkimage/patches/100-portability.patch index ae38ad68ea..9f2c0bbd16 100644 --- a/tools/mkimage/patches/100-portability.patch +++ b/tools/mkimage/patches/100-portability.patch @@ -1,10 +1,11 @@ --- a/tools/kwbimage.c +++ b/tools/kwbimage.c -@@ -206,6 +206,28 @@ INVL_DATA: +@@ -206,6 +206,30 @@ INVL_DATA: exit (EXIT_FAILURE); } +#ifndef __GLIBC__ ++#if !defined(__APPLE__) || __DARWIN_C_LEVEL < 200809L +static ssize_t +getline(char **line, size_t *len, FILE *fd) +{ @@ -25,6 +26,7 @@ + return tmplen; +} +#endif ++#endif + /* * this function sets the kwbimage header by-