1dnl ###################################################################### 2dnl check the correct type for the 6th argument to recvfrom() 3AC_DEFUN([AMU_TYPE_RECVFROM_FROMLEN], 4[ 5AC_CACHE_CHECK(non-pointer type of 6th (fromlen) argument to recvfrom(), 6ac_cv_recvfrom_fromlen, 7[ 8# select the correct type 9case "${host_os}" in 10 linux* ) 11 ac_cv_recvfrom_fromlen="unsigned int" ;; 12 aix[[1-3]]* ) 13 ac_cv_recvfrom_fromlen="int" ;; 14 aix* ) 15 ac_cv_recvfrom_fromlen="size_t" ;; 16 # old macosx used "int" but all newer ones use socklen_t 17 macosx-10.[[0-3]]* ) 18 ac_cv_recvfrom_fromlen="int" ;; 19 macosx* ) 20 ac_cv_recvfrom_fromlen="socklen_t" ;; 21 netbsd* ) 22 ac_cv_recvfrom_fromlen="socklen_t" ;; 23 * ) 24 ac_cv_recvfrom_fromlen="int" ;; 25esac 26]) 27AC_DEFINE_UNQUOTED(RECVFROM_FROMLEN_TYPE, $ac_cv_recvfrom_fromlen) 28]) 29dnl ====================================================================== 30