@@ -742,12 +742,14 @@ main(int argc, char **argv)
742742case 'U' :
743743username = (char * )strdup (optarg );
744744break ;
745+ #ifdef HAVE_ICONV_H
745746case 'F' :
746747charset_from = (char * )strdup (optarg );
747748break ;
748749case 'T' :
749750charset_to = (char * )strdup (optarg );
750751break ;
752+ #endif
751753case ':' :
752754usage ();
753755printf ("missing argument!\n" );
@@ -806,8 +808,10 @@ main(int argc, char **argv)
806808free (username );
807809if (password )
808810free (password );
811+ #ifdef HAVE_ICONV_H
809812if (charset_from )
810813iconv_close (iconv_d );
814+ #endif
811815exit (1 );
812816}
813817
@@ -846,8 +850,10 @@ main(int argc, char **argv)
846850free (username );
847851if (password )
848852free (password );
853+ #ifdef HAVE_ICONV_H
849854if (charset_from )
850855iconv_close (iconv_d );
856+ #endif
851857exit (1 );
852858}
853859
@@ -864,8 +870,10 @@ main(int argc, char **argv)
864870free (username );
865871if (password )
866872free (password );
873+ #ifdef HAVE_ICONV_H
867874if (charset_from )
868875iconv_close (iconv_d );
876+ #endif
869877exit (1 );
870878}
871879if (del )
@@ -880,8 +888,10 @@ main(int argc, char **argv)
880888free (username );
881889if (password )
882890free (password );
891+ #ifdef HAVE_ICONV_H
883892if (charset_from )
884893iconv_close (iconv_d );
894+ #endif
885895exit (1 );
886896}
887897if (verbose > 1 )
@@ -903,8 +913,10 @@ main(int argc, char **argv)
903913free (username );
904914if (password )
905915free (password );
916+ #ifdef HAVE_ICONV_H
906917if (charset_from )
907918iconv_close (iconv_d );
919+ #endif
908920exit (1 );
909921}
910922if (verbose > 1 )
@@ -933,7 +945,9 @@ main(int argc, char **argv)
933945free (username );
934946if (password )
935947free (password );
948+ #ifdef HAVE_ICONV_H
936949if (charset_from )
937950iconv_close (iconv_d );
951+ #endif
938952exit (0 );
939953}