ttyname_r does not work.
returns -1 on error and sets errno. So we need to do the same. bump PKGREVISION