Werner Koch <[EMAIL PROTECTED]> writes: > On Fri, 2 Feb 2007 11:37, [EMAIL PROTECTED] said: > >> Hi! Cross-compiling libgcrypt 1.2.4 to mingw32 fails: > > Have you tested your > > # socklen.m4 serial 4 > > for cross-compiling?
Yes. socklen_t exists on mingw32 if you include ws2tcpip.h. Code will have to include the same headers as the M4 test. > Hmm, there seems to be a bug in it anyway: > > AC_CHECK_TYPE([socklen_t], , > [AC_MSG_CHECKING([for socklen_t equivalent]) > AC_CACHE_VAL([gl_cv_gl_cv_socklen_t_equiv], > ^^^^^^^^^^^ > [# Systems have either "struct sockaddr *" or > # "void *" as the second argument to getpeername > gl_cv_socklen_t_equiv= > ^^^^^ Oops. I have fixed that in gnulib CVS, thanks! It didn't modify how the test worked, though, it only prevented caching from working. /Simon