Another one that misses errno. Also made it conditinally compile