guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile 2.0.9 build on mingw


From: Eli Zaretskii
Subject: Re: guile 2.0.9 build on mingw
Date: Thu, 13 Jun 2013 16:26:37 +0300

> Date: Wed, 12 Jun 2013 20:57:38 +0300
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> 
> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]