configure: fix recvfrom 5th arg type qualifier detection (followup)

pull/6/head
Yang Tse 14 years ago
parent 700b928544
commit e67edcd18d
  1. 8
      acinclude.m4

@ -1199,7 +1199,7 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
shift
#
recvfrom_ptrt_arg2=$[2]
recvfrom_qual_type_arg5=$[5]
recvfrom_qual_ptrt_arg5=$[5]
recvfrom_ptrt_arg6=$[6]
#
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG1, $[1],
@ -1221,14 +1221,14 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
;;
esac
#
case "$recvfrom_qual_type_arg5" in
case "$recvfrom_qual_ptrt_arg5" in
const*)
recvfrom_qual_arg5=const
recvfrom_ptrt_arg5=`echo $recvfrom_qual_type_arg5 | sed 's/^const //'`
recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'`
;;
*)
recvfrom_qual_arg5=
recvfrom_ptrt_arg5=$recvfrom_qual_type_arg5
recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5
;;
esac
#

Loading…
Cancel
Save