diff --git a/src/unix.cpp b/src/unix.cpp --- a/src/unix.cpp +++ b/src/unix.cpp @@ -144,7 +144,7 @@ static const char *convert_tofrom_fs(ico /* Work around buggy iconv implementation where inbuf is wrongly typed as * non-const. Correct implementation is at * http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.html */ -#ifdef HAVE_BROKEN_ICONV +#if defined(HAVE_BROKEN_ICONV) && !defined(__APPLE__) char *inbuf = (char*)name; #else const char *inbuf = name;