Added missing dlclose for Windows.
Fixes to windows compat functions.
Fixed Windows header include.
Added dlopen, dlerror, dlsym defs from MRI.
Added localtime_r and gmtime_r for Windows.
Added various errno defs from MRI for Windows.
Add defines for SHUT_RD|WR|RDWR.
Adapt fcntl() from MRI.
Handle stupid definition of FD_SET.
FD_SET on MinGW uses an unsigned int for the file descriptor variable,
which results in compile-time warnings. We use a cast instead of changing
the function prototype in the C-API.
Use timeradd|sub() macros instead of functions (patch alus).
Added timeradd|sub() for Windows.
Added nanosleep stub and more working around pthread_t definition in …
Implement setenv() for Windows.
Import crypt() that MRI uses.
Fixes to compile ffi_util.cpp.
Better handling of _set|_longjmp support and use of windows_compat.h.
Windows is missing _setjmp/_longjmp, not setjmp/longjmp
Define _setjmp/_longjmp as an alias for setjmp/longjmp; corrects 57c1109.
Convert CR-LF to LF in windows_compat.h
Push set/longjmp defines into compat header on Windows.
Added uname stub for windows.
Fixes, workarounds, stubs to compile agent.cpp.