Hi,

please find attached a small patch against curl 7.21.4,
which helps configure detect the correct recvfrom signature when
compiling for android.

bionic (the android libc) declares recvfrom as follows:

__socketcall ssize_t recvfrom(int, void *, size_t, unsigned int, const struct 
sockaddr *, socklen_t *);

cheers,

        Manuel

--- curl-7.21.4/acinclude.m4~	2011-01-27 20:31:24.000000000 +0100
+++ curl-7.21.4/acinclude.m4	2011-03-10 11:46:29.046651692 +0100
@@ -1663,7 +1663,7 @@
           for recvfrom_arg2 in 'char *' 'void *'; do
             for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
               for recvfrom_arg4 in 'int' 'unsigned int'; do
-                for recvfrom_arg5 in 'struct sockaddr *' 'void *'; do
+                for recvfrom_arg5 in 'const struct sockaddr *' 'struct sockaddr *' 'void *'; do
                   for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
                     if test "$curl_cv_func_recvfrom_args" = "unknown"; then
                       AC_COMPILE_IFELSE([
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to