> Date: Wed, 12 Jun 2013 20:57:38 +0300
> From: Eli Zaretskii <[email protected]>
> Cc: [email protected]
> 
> 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