[Top][All Lists]

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

Re: [Help-glpk] Building 4.62 on mingw64

From: Chris Matrakidis
Subject: Re: [Help-glpk] Building 4.62 on mingw64
Date: Thu, 29 Jun 2017 13:39:32 +0100


> Another way:
> ./configure --disable-reentrant

There is a second problem with mingw on 64 bit windows, so this still
won't work: The tv_sec field in struct timeval is 32 bit while time_t
is 64 bit. Looking at msdn this seems like a microsoft header issue.

The attached patch tries to correct both issues, by adding a configure
check that the tv_sec field size is the same as the time_t size and by
defining __WOE__ for mingw to get the *_s thread safe functions
instead of the *_r ones. It has been tested to work on 64 bit mingw
with configure run under msys2 (thanks Rob) and on linux where it
doesn't change anything.

Best Regards,

Chris Matrakidis

Attachment: mingw.patch
Description: Binary data

reply via email to

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