Fix errno comparison
Merge pull request #3 from Xenopathic/patch-1

Fix errno comparison