oops
authorMichael Wallner <mike@php.net>
Fri, 1 Aug 2014 11:51:41 +0000 (13:51 +0200)
committerMichael Wallner <mike@php.net>
Fri, 1 Aug 2014 11:51:41 +0000 (13:51 +0200)
php_ares.c

index 1685d43069d20402e5ddb5054ce22bd991a0c73a..e3f0603e25b28b4a84b440e20e917366974cff2d 100644 (file)
@@ -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);