Hello, Manuel,

I recently attempted to create a MinGW32 build of bigloo 4.0b. A few changes 
were required to get it to build. I have attached the patches. Most are very 
small, and I don't expect any problems. However, I did have to make a few 
changes to csocket.c that I am less sure of. The first was that the type of the 
socket option value variable is different on windows; it is a char* instead of 
void*. I introduced a define SOCKOPTVALTYPE that is set to the appropriate type 
depending on the platform and modified setsockopt and getsockopt calls to use 
it. I also  modified bgl_datagram_socket to use getaddrinfo when inet_pton is 
not available. For whatever reason, windows has had getaddrinfo for a long time 
but only recently added (I believe in VISTA) inet_pton. Unfortunately, mingw 
does not yet expose this function and using it would require VISTA or greater.

For those interested, a inno installer for bigloo4.0b can be found at 
http://jwd.sandjsite.net/projects/mingw-bigloo. Both the native and jvm 
backends are supported. You will, however, need to install Mingw and a jave 
runtime to use; it is not included in the install.

Best Regards,
Joseph Donaldson

Attachment: csocket.patch
Description: Binary data

Attachment: csystem.patch
Description: Binary data

Attachment: getaddrinfo.patch
Description: Binary data

Attachment: inet_aton.patch
Description: Binary data

Attachment: inet_pton.patch
Description: Binary data

Reply via email to