You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. --- a/src/webdav.c
  2. +++ b/src/webdav.c
  3. @@ -25,7 +25,7 @@
  4. #ifdef HAVE_FCNTL_H
  5. #include <fcntl.h>
  6. #endif
  7. -#ifdef HAVE_ICONV_H
  8. +#ifdef HAVE_ICONV
  9. #include <iconv.h>
  10. #endif
  11. #ifdef HAVE_LANGINFO_H
  12. @@ -231,7 +231,7 @@ static int initialized;
  13. Needed by ssl_verify() which may be called at any time. */
  14. static int have_terminal;
  15. -#ifdef HAVE_ICONV_H
  16. +#ifdef HAVE_ICONV
  17. /* Handle to convert character encoding from utf-8 to LC_CTYPE.
  18. If NULL no conversion is done. */
  19. static iconv_t from_utf_8;
  20. @@ -264,7 +264,7 @@ static char **cookie_list;
  21. /* Private function prototypes and inline functions */
  22. /*==================================================*/
  23. -#ifdef HAVE_ICONV_H
  24. +#ifdef HAVE_ICONV
  25. static void
  26. convert(char **s, iconv_t conv);
  27. #endif
  28. @@ -337,7 +337,7 @@ dav_init_webdav(const dav_args *args)
  29. if (args->neon_debug & ~NE_DBG_HTTPPLAIN)
  30. syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), "Initializing webdav");
  31. -#ifdef HAVE_ICONV_H
  32. +#ifdef HAVE_ICONV
  33. char *lc_charset = nl_langinfo(CODESET);
  34. if (lc_charset && strcasecmp(lc_charset, "UTF-8") != 0) {
  35. from_utf_8 = iconv_open(lc_charset, "UTF-8");