<mbp@samba.org>, Oct 2000.
*/
#include "rsync.h"
-#if defined HAVE_ICONV && defined HAVE_ICONV_H
+#if defined HAVE_ICONV_OPEN && defined HAVE_ICONV_H
#include <iconv.h>
#endif
extern int daemon_log_format_has_o_or_i;
extern char *auth_user;
extern char *log_format;
-#ifdef HAVE_ICONV
+#ifdef HAVE_ICONV_OPEN
extern iconv_t ic_chck;
#endif
&& isdigit(*(uchar*)(s+2))
&& isdigit(*(uchar*)(s+3))
&& isdigit(*(uchar*)(s+4)))
-#ifdef HAVE_ICONV
+#ifdef HAVE_ICONV_OPEN
|| (*(uchar*)s < ' ' && *s != '\t')
#else
|| ((!isprint(*(uchar*)s) || *(uchar*)s < ' ') && *s != '\t')
trailing_CR_or_NL = len && (buf[len-1] == '\n' || buf[len-1] == '\r')
? buf[--len] : 0;
-#ifdef HAVE_ICONV
+#ifdef HAVE_ICONV_OPEN
if (ic_chck != (iconv_t)-1) {
char convbuf[1024];
char *in_buf = buf, *out_buf = convbuf;
io_set_sock_fds(f_in, f_out);
setup_protocol(f_out, f_in);
-#ifdef HAVE_ICONV
+#ifdef HAVE_ICONV_OPEN
setup_iconv();
#endif
io_set_sock_fds(f_in, f_out);
setup_protocol(f_out,f_in);
-#ifdef HAVE_ICONV
+#ifdef HAVE_ICONV_OPEN
setup_iconv();
#endif
process */
#include "rsync.h"
-#if defined HAVE_ICONV && defined HAVE_ICONV_H
+#if defined HAVE_ICONV_OPEN && defined HAVE_ICONV_H
#include <iconv.h>
#endif
#if defined HAVE_LIBCHARSET_H && defined HAVE_LOCALE_CHARSET
extern int make_backups;
extern struct stats stats;
-#ifdef HAVE_ICONV
+#ifdef HAVE_ICONV_OPEN
iconv_t ic_chck = (iconv_t)-1;
static char *default_charset(void)