Commit Diff


commit - 734e1bdfebe9a848eea0de1f2d403c4bf5d625a4
commit + cfbaab19349cc83ee8e3d8197c0d7ba270b5c7f7
blob - d5c15d6c6b96892597be0254df83a3e047352ecc
blob + b362c542342a94b9b2bdc7c9d8eea391afcbb744
--- configure.ac
+++ configure.ac
@@ -16,6 +16,30 @@ AC_REPLACE_FUNCS([fgetln strtonum reallocarray recallo
 
 AC_CHECK_FUNCS([asr_run pledge])
 
+AC_CHECK_MEMBERS([struct sockaddr.sa_len], , ,
+	[ #include <netdb.h>
+	  #include <netinet/in.h>
+	  #include <sys/socket.h> ]
+)
+
+AC_CHECK_MEMBERS([struct sockaddr_storage.ss_len], , ,
+	[ #include <netdb.h>
+	  #include <netinet/in.h>
+	  #include <sys/socket.h> ]
+)
+
+AC_CHECK_MEMBERS([struct sockaddr_in.sin_len], , ,
+	[ #include <netdb.h>
+	  #include <netinet/in.h>
+	  #include <sys/socket.h> ]
+)
+
+AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_len], , ,
+	[ #include <netdb.h>
+	  #include <netinet/in.h>
+	  #include <sys/socket.h> ]
+)
+
 dnl on OpenBSD, make sure to use libevent and libasr from base
 dnl on other system, we *must* use the bundled libasr.
 need_libasr=yes