diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-08-16 02:23:41 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-08-16 02:23:41 +0000 |
commit | 5165ebdb8144cd5be706e49957f5c8b51b762821 (patch) | |
tree | 6aa0ac7236734f0f6726d2752400f9b7d6674082 /xtrans.m4 | |
parent | 4ce01dc794022e74b01aac7b902acbbfebc74ed1 (diff) |
Define BSD44SOCKETS if struct sockaddr_in has a sin_len member
Diffstat (limited to 'xtrans.m4')
-rw-r--r-- | xtrans.m4 | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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() |