From: Sergey Poznyakoff Date: Mon, 14 Jan 2019 12:46:43 +0000 (+0200) Subject: Fix compilation without iconv. X-Git-Tag: release_1_32~8 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f5a57be4bcb4b6e641457ef0fc99bdbe84828ba;p=thirdparty%2Ftar.git Fix compilation without iconv. --- diff --git a/src/utf8.c b/src/utf8.c index 91476aa9..53a1ab21 100644 --- a/src/utf8.c +++ b/src/utf8.c @@ -35,11 +35,14 @@ # define iconv_open(tocode, fromcode) ((iconv_t) -1) # undef iconv -# define iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft) ((size_t) 0) +# define iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft) (errno = ENOSYS, (size_t) -1) # undef iconv_close # define iconv_close(cd) 0 +# undef iconv_t +# define iconv_t int + #endif