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
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
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;
>>
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
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
(-)
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
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
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
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
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
---
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
, 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
12 matches
Mail list logo