# ifdef AI_IDN
/* Run-time I18n Domain Names support */
{
- static int i_idn = AI_IDN; /* beware of thread-safety */
+ static vlc_bool_t i_idn = VLC_TRUE; /* beware of thread-safety */
if( i_idn )
{
int i_ret;
- hints.ai_flags |= i_idn;
+ hints.ai_flags |= AI_IDN;
i_ret = getaddrinfo( psz_node, psz_service, &hints, res );
if( i_ret != EAI_BADFLAGS )
/* NOTE: Using i_idn here would not be thread-safe */
hints.ai_flags &= ~AI_IDN;
- i_idn = 0;
+ i_idn = VLC_FALSE;
msg_Dbg( p_this, "I18n Domain Names not supported - disabled" );
}
}