X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fmkimage%2Fpatches%2F100-portability.patch;h=9f2c0bbd1649ae79bde786b20d073c805142ac36;hb=9649600c69ba8e574ffb1fd9558fce0a7a7cd58b;hp=ae38ad68eaec06f618dc24153dbc815d1de2efb9;hpb=bb7d19a9e626793d0c8d8f5b5400bce613be6cfb;p=openwrt-10.03%2F.git diff --git a/tools/mkimage/patches/100-portability.patch b/tools/mkimage/patches/100-portability.patch index ae38ad68e..9f2c0bbd1 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-