From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Tuexen Newsgroups: gmane.lisp.guile.devel Subject: Re: SIN_LEN and SIN_LEN6 in libguile/socket.c Date: Wed, 25 Aug 2004 11:40:50 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <6F334972-F60A-11D8-A075-000D932C78D8@lurchi.franken.de> <87oel0yrtf.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1093461064 20784 80.91.224.253 (25 Aug 2004 19:11:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Aug 2004 19:11:04 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Aug 25 21:10:51 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C03AY-0007jK-00 for ; Wed, 25 Aug 2004 21:10:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C03F8-0001U4-TA for guile-devel@m.gmane.org; Wed, 25 Aug 2004 15:15:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C01ZR-0005gx-Qh for guile-devel@gnu.org; Wed, 25 Aug 2004 13:28:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C01ZO-0005eO-Bb for guile-devel@gnu.org; Wed, 25 Aug 2004 13:28:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C00zM-0001a5-V8 for guile-devel@gnu.org; Wed, 25 Aug 2004 12:51:09 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BzuH8-00041G-2z for guile-devel@gnu.org; Wed, 25 Aug 2004 05:41:02 -0400 Original-Received: from [192.168.1.22] (p5089DD8E.dip.t-dialin.net [80.137.221.142]) by ilsa.franken.de (Postfix) with ESMTP id D048C245CF; Wed, 25 Aug 2004 11:40:55 +0200 (CEST) (KNF account authenticated via SMTP-AUTH) In-Reply-To: <87oel0yrtf.fsf@zip.com.au> Original-To: Kevin Ryde X-Mailer: Apple Mail (2.619) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4037 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4037 Hi Kevin, see my comments below. Best regards Michael On Aug 25, 2004, at 2:39 AM, Kevin Ryde wrote: > Michael Tuexen 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 #endif #include ]) 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 #endif #include ]) do the same job. So you can use whatever you want. I just did not know about AC_CHECK_MEMBER... _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel