provide a network source line resolver + server. r=mark,jimb at http://breakpad.appspot.com/36001
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@569 4c0a9323-5329-0410-9bdc-e9ce6186880e
diff --git a/configure.ac b/configure.ac
index 209fe06..70baccb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,15 @@
esac],
[usem32=false])
+AC_CHECK_MEMBER(struct sockaddr.sa_len,
+ [AC_DEFINE([GET_SA_LEN(X)],[(((struct sockaddr*)&(X))->sa_len)],
+ [actual length of specific struct sockaddr])],
+ [AC_DEFINE([GET_SA_LEN(X)],
+ [(((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \
+ ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))],
+ [actual length of specific struct sockaddr])],
+ [#include <sys/socket.h>])
+
AC_ARG_ENABLE(selftest,
AS_HELP_STRING([--enable-selftest],
[Run extra tests with "make check" ]