summaryrefslogtreecommitdiff
path: root/xtrans.m4
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-08-16 02:23:41 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-08-16 02:23:41 +0000
commit5165ebdb8144cd5be706e49957f5c8b51b762821 (patch)
tree6aa0ac7236734f0f6726d2752400f9b7d6674082 /xtrans.m4
parent4ce01dc794022e74b01aac7b902acbbfebc74ed1 (diff)
Define BSD44SOCKETS if struct sockaddr_in has a sin_len member
Diffstat (limited to 'xtrans.m4')
-rw-r--r--xtrans.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/xtrans.m4 b/xtrans.m4
index f5d2904..229ad63 100644
--- a/xtrans.m4
+++ b/xtrans.m4
@@ -42,7 +42,16 @@ AC_DEFUN([XTRANS_TCP_FLAGS],[
if test "$IPV6CONN" = "yes"; then
AC_DEFINE(IPv6,1,[Support IPv6 for TCP connections])
fi
- AC_MSG_RESULT($IPV6CONN)
+ AC_MSG_RESULT($IPV6CONN)
+
+ # 4.3BSD-Reno added a new member to struct sockaddr_in
+ AC_CHECK_MEMBER([struct sockaddr_in.sin_len],
+ AC_DEFINE([BSD44SOCKETS],1,
+ [Define to 1 if `struct sockaddr_in' has a `sin_len' member]), [], [
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+ ])
]) # XTRANS_TCP_FLAGS
# XTRANS_CONNECTION_FLAGS()