From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.user Subject: Re: guile 2.0.9 build on mingw Date: Thu, 13 Jun 2013 16:26:37 +0300 Message-ID: <83li6ew38y.fsf@gnu.org> References: <83sj1hv2ml.fsf@gnu.org> <874ndx9y7h.fsf@pobox.com> <83ip2bt4qk.fsf@gnu.org> <8761xqhyyt.fsf@gnu.org> <83li6mt18y.fsf@gnu.org> <83wqq3mcq9.fsf@gnu.org> <87k3m3kor5.fsf@gnu.org> <83ehcalysu.fsf@gnu.org> <87sj0pvl4a.fsf@tines.lan> <837gi1n3v5.fsf@gnu.org> <87k3m1vg8b.fsf@tines.lan> <83txl4lhby.fsf@gnu.org> <838v2fky99.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1371130006 27314 80.91.229.3 (13 Jun 2013 13:26:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Jun 2013 13:26:46 +0000 (UTC) Cc: guile-user@gnu.org To: mhw@netris.org, ludo@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jun 13 15:26:45 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Un7Y4-00005m-AW for guile-user@m.gmane.org; Thu, 13 Jun 2013 15:26:44 +0200 Original-Received: from localhost ([::1]:48828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un7Y3-0004bJ-Sq for guile-user@m.gmane.org; Thu, 13 Jun 2013 09:26:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un7Xq-0004W5-UF for guile-user@gnu.org; Thu, 13 Jun 2013 09:26:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un7Xp-0002CC-Oe for guile-user@gnu.org; Thu, 13 Jun 2013 09:26:30 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:43994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un7Xp-0002C4-Gx; Thu, 13 Jun 2013 09:26:29 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MOC00J0025NI000@a-mtaout23.012.net.il>; Thu, 13 Jun 2013 16:26:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOC00JMV2O3E790@a-mtaout23.012.net.il>; Thu, 13 Jun 2013 16:26:28 +0300 (IDT) In-reply-to: <838v2fky99.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10434 Archived-At: > Date: Wed, 12 Jun 2013 20:57:38 +0300 > From: Eli Zaretskii > Cc: guile-user@gnu.org > > Finally, the tests in check-guile fail because they unconditionally > use features that are not compiled into the MinGW build or not > supported by it, like 'lstat', AF_UNIX in sockets, etc. Actually, that was wrong: the use of AF_UNIX is already conditioned on its being available. The problem is elsewhere: socket.c failed to condition its availability on HAVE_UNIX_DOMAIN_SOCKETS. Fixed thusly: --- libguile/socket.c~0 2013-03-18 23:30:13.000000000 +0200 +++ libguile/socket.c 2013-06-13 06:58:36.917359500 +0300 @@ -1737,8 +1737,10 @@ scm_init_socket () scm_c_define ("AF_UNSPEC", scm_from_int (AF_UNSPEC)); #endif #ifdef AF_UNIX +#ifdef HAVE_UNIX_DOMAIN_SOCKETS scm_c_define ("AF_UNIX", scm_from_int (AF_UNIX)); #endif +#endif #ifdef AF_INET scm_c_define ("AF_INET", scm_from_int (AF_INET)); #endif