]> git.sesse.net Git - vlc/blobdiff - src/network/getaddrinfo.c
Fix the interpretation of command "help" by VLM.
[vlc] / src / network / getaddrinfo.c
index d5514d2d6c4cc0e3cbc78faf87cb070a6317440d..840e300ccff296675c70698fc5d0541f7528f802 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 
 #include <stddef.h> /* 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