fix mismatched type in posix_getdents definition