diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index 789d39ff7..92ee5197f 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -201,7 +201,10 @@ POSSIBILITY OF SUCH DAMAGE. #else // FreeBSD has a reasonable iconv signature -#define TORRENT_ICONV_ARG (const char**) +// unless we're on glibc +#ifndef __GLIBC__ +# define TORRENT_ICONV_ARG (const char**) +#endif #endif #define TORRENT_HAS_FALLOCATE 0 #define TORRENT_USE_IFADDRS 1