X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fnetwork%2Fgetaddrinfo.c;h=840e300ccff296675c70698fc5d0541f7528f802;hb=b942bf2b1bf1f9ca9b9ca951937ab947d42b376a;hp=d5514d2d6c4cc0e3cbc78faf87cb070a6317440d;hpb=6ee1e193fd896ab9a4729fde14f009d9ce629815;p=vlc diff --git a/src/network/getaddrinfo.c b/src/network/getaddrinfo.c index d5514d2d6c..840e300ccf 100644 --- a/src/network/getaddrinfo.c +++ b/src/network/getaddrinfo.c @@ -22,6 +22,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include /* size_t */ @@ -679,7 +683,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node, #if defined (HAVE_GETADDRINFO) # ifdef AI_IDN /* Run-time I18n Domain Names support */ - static vlc_bool_t b_idn = VLC_TRUE; /* beware of thread-safety */ + static bool b_idn = true; /* beware of thread-safety */ if (b_idn) { @@ -691,7 +695,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node, /* IDN not available: disable and retry without it */ hints.ai_flags &= ~AI_IDN; - b_idn = VLC_FALSE; + b_idn = false; msg_Info (p_this, "International Domain Names not supported"); } # endif