From bffe69a151bbd1aae72e50c128fdb0c58596ade1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 21 Jul 2008 00:36:55 +0000 Subject: when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will now cause the definition of RECVFROM_TYPE_ARG2_IS_VOID, RECVFROM_TYPE_ARG5_IS_VOID or RECVFROM_TYPE_ARG6_IS_VOID, as appropriate. --- acinclude.m4 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 48150459f..743fcda08 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1739,6 +1739,19 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [ AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6, $recvfrom_type_arg6, [Define to the type pointed by arg 6 for recvfrom.]) # + if test "$recvfrom_type_arg2" = "void"; then + AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG2_IS_VOID, 1, + [Define to 1 if the type pointed by arg 2 for recvfrom is void.]) + fi + if test "$recvfrom_type_arg5" = "void"; then + AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG5_IS_VOID, 1, + [Define to 1 if the type pointed by arg 5 for recvfrom is void.]) + fi + if test "$recvfrom_type_arg6" = "void"; then + AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6_IS_VOID, 1, + [Define to 1 if the type pointed by arg 6 for recvfrom is void.]) + fi + # case $prev_sh_opts in *f*) ;; -- cgit v1.2.3