errno is undefined

I only took a birdseye view at the code so excuse me if I'm mistaken, but shouldn't `errno` be `err`?
Merge pull request #1 from y-lohse/patch-1

errno is undefined