NetBSDfr/pkgin — pull request #6 by j4 (2013-07-15 16:26:18+00:00)
Title: Compilation error due to use of "errno" without <errno.h> 

Error due to commit 7741fe201eea58628562cc833e16e034694cfa72 (management errors on mkdir)
Check the include is well positioned for the main developer.