_get_osfhandle bound with an incorrect type
compiler/GHC/Runtime/Utils.hs
has the following:
foreign import ccall unsafe "io.h _get_osfhandle"
_get_osfhandle :: CInt -> IO CInt
This is wrong. The result type should be HANDLE
.
This was introduced in 44a5d51a