Re: [PATCH gnulib 4/4] RFC stat: x86_64 mingw64 #define stat as _stat64.

2012-01-30 Thread Marc-André Lureau
Hi Bruno, On Mon, Jan 30, 2012 at 1:02 AM, Bruno Haible wrote: > Thanks. Can you please try this patch? I tested this patch, it works with mingw64 both i686 and x86_64, thanks! -- Marc-André Lureau

Re: [PATCH gnulib 4/4] RFC stat: x86_64 mingw64 #define stat as _stat64.

2012-01-29 Thread Marc-André Lureau
t;> #define stat as _stat64 > > I don't see such a #define in my copy of mingw64. Where do you see it? https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/trunk/mingw-w64-headers/crt/sys/stat.h -- Marc-André Lureau

Re: [libvirt] [PATCH libvirt 6/6] Cast timeval.tv_sec long to localtime expected type time_t

2012-01-27 Thread Marc-André Lureau
On Thu, Jan 26, 2012 at 4:42 PM, Marc-André Lureau wrote: > On Thu, Jan 26, 2012 at 3:01 PM, Bruno Haible wrote: >> Eric Blake wrote: >>> <_timeval.h>: >>> struct timeval >>> { >>>         long tv_sec; >>>         long tv_usec; >>

Re: [libvirt] [PATCH libvirt 6/6] Cast timeval.tv_sec long to localtime expected type time_t

2012-01-26 Thread Marc-André Lureau
ndows API; the mingw people have the power to define it correctly. Ok, I sent a mail to mingw64 mailing list with a proposed patch. It's waiting for moderator approvals. Will report here once it is solved there -- Marc-André Lureau

[PATCH gnulib 4/4] RFC stat: x86_64 mingw64 #define stat as _stat64.

2012-01-25 Thread Marc-André Lureau
ertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index dc7cdc1..f541345 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 2012-01-25 Marc-André Lureau + stat: x86_64 mingw64 #define stat as _stat64. + * lib/sys_stat.in.h: in order to keep mingw64 stat type, a

[PATCH gnulib 2/4] accept4, fcntl, w32sock: Avoid warnings on x86_64 mingw64.

2012-01-25 Thread Marc-André Lureau
(-) diff --git a/ChangeLog b/ChangeLog index 575fee3..eb08519 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2012-01-24 Marc-André Lureau + accept4, fcntl, w32sock: Avoid warnings on x86_64 mingw64. + * lib/accept4.c (accept4): _open_osfhandle() expect a + intptr_t

[PATCH gnulib 3/4] select, poll, isatty: Avoid warnings on x86_64 mingw64.

2012-01-25 Thread Marc-André Lureau
b/ChangeLog index eb08519..dc7cdc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2012-01-25 Marc-André Lureau + + select, poll, isatty: Avoid warnings on x86_64 mingw64. + * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle + pointer to an integer. Fix

[PATCH gnulib 0/4] some mingw64 warnings fixes

2012-01-25 Thread Marc-André Lureau
Hi, Here is a small patch seris to avoid a couple of warnings on mingw64 x86_64. The last patch is RFC, I am not satisifed with the solution, but mingw64 use a #define stat _stat64, and it's difficult to keep this type if stat() is redefined by rpl_stat(). Marc-André Lureau (4): ma

[PATCH gnulib 1/4] malloca: Avoid warnings on x86_64 mingw64.

2012-01-25 Thread Marc-André Lureau
Marc-André Lureau + + malloca: Avoid warnings on x86_64 mingw64. + * lib/malloca.c: Include . + (mmalloca, freea): Use uintptr_t to convert pointers to integers. + * modules/malloca (Depends-on): Add stdint. + * modules/relocatable-prog-wrapper (Depends-on): Likewise

[PATCH gnulib] * lib/accept4.c (accept4): _open_osfhandle() expect a intptr_t. Fix warnings with MinGW64 x64. * lib/fcntl.c (dupfd): Likewise. * lib/w32sock.h: Likewise.

2012-01-23 Thread Marc-André Lureau
Lureau + * lib/accept4.c (accept4): _open_osfhandle() expect a + intptr_t. Fix warnings with MinGW64 x64. + * lib/fcntl.c (dupfd): Likewise. + * lib/w32sock.h: Likewise. + +2012-01-24 Marc-André Lureau + * lib/malloca.c: Use uintptr_t to convert pointers to

[PATCH gnulib] * lib/malloca.c: Use uintptr_t to convert pointers to integers. Fix warnings with MinGW64 x64.

2012-01-23 Thread Marc-André Lureau
--- ChangeLog |5 + lib/malloca.c |4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5eff018..81d9557 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-01-24 Marc-André Lureau + + * lib/malloca.c: Use uintptr_t

conflicting types for 'rpl_getcwd'

2011-08-17 Thread Marc-André Lureau
, 0) allocates memory for result configure:11597: result: guessing no but there is already a declaration of getcwd in mingw direct.h: char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes) __MINGW_ATTRIB_DEPRECATED_MSVC2005; If I put #include after #include , compilation goes on regards -- Marc-André Lureau