[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SIN_LEN and SIN_LEN6 in libguile/socket.c
From: |
Michael Tuexen |
Subject: |
Re: SIN_LEN and SIN_LEN6 in libguile/socket.c |
Date: |
Wed, 25 Aug 2004 11:40:50 +0200 |
Hi Kevin,
see my comments below.
Best regards
Michael
On Aug 25, 2004, at 2:39 AM, Kevin Ryde wrote:
Michael Tuexen <address@hidden> writes:
But there are not tests in
the configure scripts to test for these fields and depending on that
defining SIN_LEN or SIN_LEN6 or not.
That's a bug, but apparently not harmful on a gnu system (glibc
doesn't seem to have that field).
These fields are available on *BSD systems...
AC_MSG_CHECKING(for sin_len)
AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H
...
AC_CHECK_MEMBER?
AC_CHECK_MEMBER(struct sockaddr_in.sin_len,
AC_DEFINE(HAVE_SIN_LEN, 1, [Define this if your IPv4
has sin_len in sockaddr_in struct.]),,
[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <netinet/in.h>])
and
AC_CHECK_MEMBER(struct sockaddr_in6.sin6_len,
AC_DEFINE(HAVE_SIN6_LEN, 1, [Define this if your IPv6
has sin6_len in sockaddr_in6 struct.]),,
[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <netinet/in.h>])
do the same job. So you can use whatever you want. I just did not know
about AC_CHECK_MEMBER...