X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2Funicodeio.c;h=a1db6e282dd8828f5f79b8355dbb39abd7d1291f;hb=4bfdfaa270155e6e9a32f2c8c459a510c77dd854;hp=37b69aaa01cae1f5b9f3fcf379a481afc57aed14;hpb=61170ee8403ead856956207fef048e6eae3563ed;p=chaz%2Ftar diff --git a/lib/unicodeio.c b/lib/unicodeio.c index 37b69aa..a1db6e2 100644 --- a/lib/unicodeio.c +++ b/lib/unicodeio.c @@ -37,17 +37,21 @@ #ifndef errno extern int errno; #endif + +#if HAVE_ICONV +# include +#endif + +/* Some systems, like SunOS 4, don't have EILSEQ. On these systems, + define EILSEQ to some value other than EINVAL, because our invokers + may want to distinguish EINVAL from EILSEQ. */ #ifndef EILSEQ -# define EILSEQ EINVAL +# define EILSEQ ENOENT #endif #ifndef ENOTSUP # define ENOTSUP EINVAL #endif -#if HAVE_ICONV -# include -#endif - #if HAVE_LANGINFO_CODESET && ! USE_INCLUDED_LIBINTL # include #endif