diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-04-26 09:27:44 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-04-26 09:27:44 +0000 |
commit | cb01bab6c00ce1b7ba86a9121fabef72b3c20923 (patch) | |
tree | f42c376c6ef07d3f0118de84d3f5263cd3141aca | |
parent | eea55e45be37a38a576a8a1c1fd436d4696bb3c8 (diff) | |
download | zsh-cb01bab6c00ce1b7ba86a9121fabef72b3c20923.tar.gz zsh-cb01bab6c00ce1b7ba86a9121fabef72b3c20923.tar.xz zsh-cb01bab6c00ce1b7ba86a9121fabef72b3c20923.zip |
Phil Pennock: 23326: compilation without ICONV broken
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Src/utils.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 170c5761f..511271ea2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-26 Peter Stephenson <pws@csr.com> + + * Phil Pennock: 23326: Src/utils.c: with no __STDC_ISO_10646__ + or HAVE_ICONV but with HAVE_NL_LANGINFO and CODESET the + code wouldn't compile. + 2007-04-23 Peter Stephenson <pws@csr.com> * unposted: Src/parse.c: make sure we get "invalid zwc file" diff --git a/Src/utils.c b/Src/utils.c index 6041e092b..35915a2e7 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -4569,10 +4569,12 @@ getkeystring(char *s, int *len, int how, int *misc) int count; #else unsigned int wval; -# if defined(HAVE_NL_LANGINFO) && defined(CODESET) && defined(HAVE_ICONV) +# if defined(HAVE_NL_LANGINFO) && defined(CODESET) +# if defined(HAVE_ICONV) iconv_t cd; char inbuf[4]; size_t inbytes, outbytes; +# endif size_t count; # endif #endif |