fixed sin_len test for FreeBSD
[samba.git] / source3 / configure.in
index a7cba676881e0dca651918c91138e9f18de7ea0e..621c23ed504507d6df9bc48a07dbd9372fc2f2b0 100644 (file)
@@ -145,7 +145,8 @@ echo no)
 
 echo $ac_n "checking for sin_len in sock ... $ac_c"
 AC_TRY_COMPILE([#include <sys/types.h>
-#include <sys/socket.h>],
+#include <sys/socket.h>
+#include <netinet/in.h>],
 [struct sockaddr_in sock; sock.sin_len = sizeof(sock);],
 echo yes;AC_DEFINE(HAVE_SOCK_SIN_LEN), 
 echo no)