12 Apr 2012 23:59
Patch for Android NDK build
Hi everyone, I have noticed a problem with building c-ares on the Android NDK. The problem is that c-ares currently only checks for #ifdef ANDROID but it really also needs to check for __ANDROID__ as well. I noticed recently that a patch was submitted by Cedric Deltheil to the CURL sources on 20 Dec 2011, which is designed to correctly test for building with the Android NDK. I have included a copy of his comments and patches for everyone to review at the bottom of this email. I think a similar patch should also be applied to c-ares as well: diff --git a/ares_init.c b/ares_init.c index ea2a978..3d29cfe 100644 --- a/ares_init.c +++ b/ares_init.c <at> <at> -60,7 +60,7 <at> <at> #include <ctype.h> #include <time.h> -#ifdef ANDROID +#if defined(ANDROID) || defined(__ANDROID__) #include <sys/system_properties.h> #endif <at> <at> -971,7 +971,7 <at> <at> DhcpNameServer } status = ARES_EOF;(Continue reading)
follow-up commit to fix c&p error:
58e62c58794500cb65e7684f1d09c7d951b8b42d
Gün.
RSS Feed