Check for when errno is set on windows as well as the windows variant for errors.