Fixed the test for sin_len as noted by Shinichi Maruyama. Changed
authorWayne Davison <wayned@samba.org>
Tue, 16 Mar 2004 01:26:39 +0000 (01:26 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 16 Mar 2004 01:26:39 +0000 (01:26 +0000)
the define name generated for this test and the sa_len test.

configure.in

index ad1abde..43f48db 100644 (file)
@@ -389,19 +389,20 @@ else
 fi
 
 AC_CHECK_MEMBER([struct sockaddr.sa_len],
-               [ AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Do we have sockaddr.sa_len?]) ],
+               [ AC_DEFINE(HAVE_SOCKADDR_LEN, 1, [Do we have sockaddr.sa_len?]) ],
                [],
                [
 #include <sys/types.h>
 #include <sys/socket.h>
 ])
 
-AC_CHECK_MEMBER([struct sockaddr.sin_len],
-               [ AC_DEFINE(HAVE_SOCKADDR_SIN_LEN, 1, [Do we have sockaddr.sin_len?]) ],
+AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
+               [ AC_DEFINE(HAVE_SOCKADDR_IN_LEN, 1, [Do we have sockaddr_in.sin_len?]) ],
                [],
                [
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 ])
 
 AC_MSG_CHECKING(struct sockaddr_storage)