Index: configure =================================================================== --- configure (revision 26108) +++ configure (working copy) @@ -2950,6 +2958,26 @@ echores "$_fast_inttypes" +echocheck "socklen_t" +cat > $TMPC << EOF +#include +#include +int main(void) { +socklen_t v = 0; +return v; } +EOF +_socklen_t=yes +_def_socklen_t='#define HAVE_SOCKLEN_T 1' +if test "$_winsock2" = no ; then + cc_check || _socklen_t=no +fi +if test "$_socklen_t" = no ; then + _def_socklen_t="$_def_socklen_t + typedef int socklen_t;" +fi +echores "$_socklen_t" + + echocheck "word size" _mp_wordsize="#undef MP_WORDSIZE" cat > $TMPC << EOF @@ -8196,8 +8270,6 @@ #define HAVE_EBP_AVAILABLE 1 #endif -#define HAVE_SOCKLEN_T 1 - #define CONFIG_GPL 1 #define ENABLE_SMALL 0 @@ -8386,6 +8458,9 @@ $_def_round $_def_roundf +/* socklen_t support */ +$_def_socklen_t + /* mkstemp support */ $_def_mkstemp