fix build with c-ares >= 1.6.1
authorMichael Wallner <mike@php.net>
Wed, 23 Dec 2009 13:07:53 +0000 (13:07 +0000)
committerMichael Wallner <mike@php.net>
Wed, 23 Dec 2009 13:07:53 +0000 (13:07 +0000)
ares.c

diff --git a/ares.c b/ares.c
index d3c7d25a9a03471180b725451de5b55bdcd2d6d2..7191268dded77ee009b39f7b881310ce97b38380 100644 (file)
--- a/ares.c
+++ b/ares.c
@@ -1649,7 +1649,7 @@ static ZEND_RSRC_DTOR_FUNC(php_ares_query_le_dtor)
 static PHP_MINIT_FUNCTION(ares)
 {
 #ifdef HAVE_ARES_LIBRARY_INIT
-       if (ARES_SUCCESS != ares_library_init()) {
+       if (ARES_SUCCESS != ares_library_init(ARES_LIB_INIT_ALL)) {
                return FAILURE;
        }
 #endif