]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Fix compilation without iconv.
authorSergey Poznyakoff <gray@gnu.org>
Mon, 14 Jan 2019 12:46:43 +0000 (14:46 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Mon, 14 Jan 2019 12:46:43 +0000 (14:46 +0200)
src/utf8.c

index 91476aa9ccf0391fbaca3aca539a62bb0ac5f24c..53a1ab21bd5311a58aa454cd32512f0bfd7b307b 100644 (file)
 # 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