--- curl-7.15.6-20060810/lib/version.c 2006-08-04 22:00:23.000000000 -0400 +++ new/lib/version.c 2006-08-10 17:03:24.381398000 -0400 @@ -78,8 +78,13 @@ } #endif #if defined(HAVE_ICONV) && defined(CURL_DOES_CONVERSIONS) +#ifdef _libiconv_version len = snprintf(ptr, left, " iconv/%d.%d", _libiconv_version >> 8, _libiconv_version & 255); +#else + /* version unknown */ + len = snprintf(ptr, left, " iconv"); +#endif /* _libiconv_version */ left -= len; ptr += len; #endif @@ -204,7 +209,12 @@ #endif #if defined(HAVE_ICONV) && defined(CURL_DOES_CONVERSIONS) +#ifdef _libiconv_version version_info.iconv_ver_num = _libiconv_version; +#else + /* version unknown */ + version_info.iconv_ver_num = -1; +#endif /* _libiconv_version */ #endif (void)stamp; /* avoid compiler warnings, we don't use this */