The Darwin implementation seems completely identical to NetBSD one, but it was not correctly built while actually targeting Darwin.