getaddrinfo on Android returning error EAI_BADFLAGS
<p>We are trying to use getaddrinfo on Android API 14 and above ( in C++ code using NDK r12)  to obtain synthesised IPV6 addresses from an IPV4 address. This is for use on IPV6 only networks with NAT64. However getaddrinfo returns EAI_BADFLAGS if aiflags is set (AI_V4MAPPED | AI_ADDRCONFIG).</p>

<pre><code>        struct addrinfo *ai, hints;
        memset(&amp;hints, 0, sizeof(hints));
        hints.ai_socktype = SOCK_DGRAM;

        hints.ai_flags = (AI_V4MAPPED | AI_ADDRCONFIG);
         hints.ai_family = AF_UNSPEC;
        int error = getaddrinfo( "46.23.43.12", "80", &amp;hints, &amp;ai);
        if( error == 0)
</code></pre>

<p>Are there any major differences from Linux?</p>