[PATCH]: glob win32 compatibility fixes, fnmatch license, glthread cond win32 compilation problem

2008-09-11 Thread Yoann Vandoorselaere
Hi, Attached are a few patch that fixes glob and glthread/cond modules compilation problem under MinGW. Additionally, a third patch fixes a licensing problem with the fnmatch module: fnmatch license was changed to LGPLv2+, but the fnmatch-posix and fnmatch-gnu associated modules are still GPL. R

[PATCH]: poll module issue on Win32

2008-09-11 Thread Yoann Vandoorselaere
Hi Paolo, Attached is a patch that fixes the poll() module to work on WIN32 systems with unconnected socket (example: server socket). Regards, -- Yoann Vandoorselaere | Responsable R&D / CTO | PreludeIDS Technologies Tel: +33 (0)8 70 70 21 58 Fax: +33(0)4 78 42 21 58 http://www

Re: [PATCH]: poll module issue on Win32

2008-09-11 Thread Paolo Bonzini
Yoann Vandoorselaere wrote: > Hi Paolo, > > Attached is a patch that fixes the poll() module to work on WIN32 > systems with unconnected socket (example: server socket). Committed. In the meanwhile I have forward-ported it to my reimplementation of poll() for WIN32, which I attach (not even comp

[PATCH] Use `AC_C_RESTRICT' in `time'

2008-09-11 Thread Ludovic Courtès
Hi, The following patch makes sure `time' uses `AC_C_RESTRICT'. This fixes compilation at least on MinGW as reported here: http://thread.gmane.org/gmane.lisp.guile.bugs/3984 Thanks, Ludovic. >From 06dc37c4ee56e9d32bfcb79ace9221c903ade7b2 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Ludovic=20Cou

Re: [PATCH]: poll module issue on Win32

2008-09-11 Thread Bruno Haible
Yoann Vandoorselaere wrote: > r = recv (pfd[i].fd, data, sizeof (data), MSG_PEEK); > + > +# ifdef WIN32 > + if (r < 0 && GetLastError() == 10057) /* server socket */ > + socket_errno = ENOTCONN; > + else > +# endif I thought that after using

Re: [PATCH] Use `AC_C_RESTRICT' in `time'

2008-09-11 Thread Bruno Haible
Ludovic Courtès wrote: > The following patch makes sure `time' uses `AC_C_RESTRICT'. This is redundant, because gl_HEADER_TIME_H requires gl_HEADER_TIME_H_BODY which requires AC_C_RESTRICT. > This fixes compilation at least on MinGW as reported here: > > http://thread.gmane.org/gmane.lisp.guil

Re: [PATCH]: fnmatch license

2008-09-11 Thread Bruno Haible
Yoann Vandoorselaere wrote: > Additionally, a third patch fixes a licensing problem with the fnmatch > module: fnmatch license was changed to LGPLv2+, but the fnmatch-posix > and fnmatch-gnu associated modules are still GPL. I applied your patch: No relicensing of files is needed, because these mo

Re: [PATCH]: glob win32 compatibility fixes

2008-09-11 Thread Bruno Haible
Hi Yoann, > Attached are a few patch that fixes glob ... > compilation problem under MinGW. A couple of details in this patch can be improved: - The predefine 'WIN32' is sometimes also defined for Cygwin, and is not defined on some native Win32 platforms. The right test for platforms t

Re: [PATCH]: glthread cond win32 compilation problem

2008-09-11 Thread Bruno Haible
Yoann Vandoorselaere wrote: > Attached are a few patch that fixes ... glthread/cond modules > compilation problem under MinGW. I'm applying the first hunk: 2008-09-11 Yoann Vandoorselaere <[EMAIL PROTECTED]> * lib/glthread/cond.h: Use dummy implementation also if USE_WIN32_THRE

Re: [PATCH] Use `AC_C_RESTRICT' in `time'

2008-09-11 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 9/11/2008 5:45 PM: > Ludovic Courtès wrote: >> The following patch makes sure `time' uses `AC_C_RESTRICT'. > > This is redundant, because gl_HEADER_TIME_H requires gl_HEADER_TIME_H_BODY > which requires AC_C_RESTRICT. > >

Re: [PATCH]: poll module issue on Win32

2008-09-11 Thread Paolo Bonzini
Bruno Haible wrote: > Yoann Vandoorselaere wrote: >> r = recv (pfd[i].fd, data, sizeof (data), MSG_PEEK); >> + >> +# ifdef WIN32 >> + if (r < 0 && GetLastError() == 10057) /* server socket */ >> + socket_errno = ENOTCONN; >> + else >> +# endi