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: SIN_LEN and SIN_LEN6 in libguile/socket.c Date: Tue, 24 Aug 2004 22:16:08 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <6F334972-F60A-11D8-A075-000D932C78D8@lurchi.franken.de> 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 1093378621 27506 80.91.224.253 (24 Aug 2004 20:17:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2004 20:17:01 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Aug 24 22:16:46 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 1Bzhio-0002z2-00 for ; Tue, 24 Aug 2004 22:16:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BzhnK-0006SO-87 for guile-devel@m.gmane.org; Tue, 24 Aug 2004 16:21:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BzhnC-0006RH-NT for guile-devel@gnu.org; Tue, 24 Aug 2004 16:21:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BzhnA-0006Q7-Ql for guile-devel@gnu.org; Tue, 24 Aug 2004 16:21:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BzhnA-0006Pz-Mn for guile-devel@gnu.org; Tue, 24 Aug 2004 16:21:16 -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 1BzhiJ-0003K8-RO for guile-devel@gnu.org; Tue, 24 Aug 2004 16:16:16 -0400 Original-Received: from [192.168.1.219] (pD9FF1858.dip.t-dialin.net [217.255.24.88]) by ilsa.franken.de (Postfix) with ESMTP id 8896C245D4 for ; Tue, 24 Aug 2004 22:16:11 +0200 (CEST) (KNF account authenticated via SMTP-AUTH) Original-To: guile-devel@gnu.org 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:4032 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4032 Dear all, the sin_len and sin_len6 field is not available on all platforms. Therefore the code setting these fields is #ifdefed. 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. I think something like AC_MSG_CHECKING(for sin_len) AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H #include #endif #include ], [struct sockaddr_in x; x.sin_len = 0;], [AC_DEFINE(HAVE_SIN_LEN, 1 [Define this if your IPv4 has sin_len in sockaddr_in struct.]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING(for sin6_len) AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H #include #endif #include ], [struct sockaddr_in6 x; x.sin6_len = 0;], [AC_DEFINE(HAVE_SIN6_LEN, 1, [Define this if your IPv6 has sin6_len in sockaddr_in6 struct.]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) should be added to configure.in and SIN_LEN/SIN_LEN6 should be changed to HAVE_SIN_LEN/HAVE_SIN6_LEN to be consistent with other names. Best regards Michael _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel