From: Daniel Stenberg Date: Tue, 23 Oct 2012 21:06:38 +0000 (+0200) Subject: asyn-ares: restore working with c-ares < 1.6.1 X-Git-Tag: curl-7_28_1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1c769877a3eab3c88b5f3f55501d3c505e247c8;p=thirdparty%2Fcurl.git asyn-ares: restore working with c-ares < 1.6.1 Back in those days the public ares.h header didn't include the ares_version.h header so it needs to be included here. Bug: http://curl.haxx.se/bug/view.cgi?id=3577710 --- diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c index 5b760128e9..ee8050a6ba 100644 --- a/lib/asyn-ares.c +++ b/lib/asyn-ares.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -83,6 +83,8 @@ # define CARES_STATICLIB # endif # include +# include /* really old c-ares didn't include this by + itself */ #if ARES_VERSION >= 0x010500 /* c-ares 1.5.0 or later, the callback proto is modified */