1 --- readdir.c.orig 2007-01-24 14:10:41.000000000 -0800
2 +++ readdir.c 2007-01-27 02:51:25.000000000 -0800
8 #include "un-namespace.h"
11 #include "libc_private.h"
17 if (dirp->dd_loc == 0 && !(dirp->dd_flags & __DTF_READALL)) {
18 +#if __DARWIN_64_BIT_INO_T
19 + dirp->dd_size = __getdirentries64(dirp->dd_fd,
20 + dirp->dd_buf, dirp->dd_len, &dirp->dd_td->seekoff);
21 +#else /* !__DARWIN_64_BIT_INO_T */
22 dirp->dd_size = _getdirentries(dirp->dd_fd,
23 dirp->dd_buf, dirp->dd_len, &dirp->dd_seek);
24 +#endif /* __DARWIN_64_BIT_INO_T */
25 if (dirp->dd_size <= 0)