From: Michael Wallner Date: Fri, 1 Aug 2014 11:51:41 +0000 (+0200) Subject: oops X-Git-Tag: RELEASE_0_8_0~16 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=10b3b2469fa38d6f97887afd90deafbf8fdfe9ed;p=m6w6%2Fext-ares oops --- diff --git a/php_ares.c b/php_ares.c index 1685d43..e3f0603 100644 --- a/php_ares.c +++ b/php_ares.c @@ -1713,9 +1713,9 @@ static PHP_MINIT_FUNCTION(ares) #ifdef ARES_EADDRGETNETWORKPARAMS REGISTER_LONG_CONSTANT("ARES_EADDRGETNETWORKPARAMS", ARES_EADDRGETNETWORKPARAMS, CONST_PERSISTENT|CONST_CS); #endif - -/* More error codes */ -#define ARES_ECANCELLED 24 /* introduced in 1.7.0 */ +#ifdef ARES_ECANCELLED + REGISTER_LONG_CONSTANT("ARES_ECANCELLED", ARES_ECANCELLED, CONST_PERSISTENT|CONST_CS); +#endif REGISTER_LONG_CONSTANT("ARES_FLAG_USEVC", ARES_FLAG_USEVC, CONST_PERSISTENT|CONST_CS); REGISTER_LONG_CONSTANT("ARES_FLAG_PRIMARY", ARES_FLAG_PRIMARY, CONST_PERSISTENT|CONST_CS);