+@@ -57,10 +61,17 @@
+ struct _telldir {
+ LIST_HEAD(, ddloc) td_locq; /* list of locations */
+ long td_loccnt; /* index of entry for sequential readdir's */
++#if __DARWIN_64_BIT_INO_T
++ __darwin_off_t seekoff; /* 64-bit seek offset */
++#endif /* __DARWIN_64_BIT_INO_T */
+ };
+
+-struct dirent *_readdir_unlocked(DIR *);
++#if __DARWIN_64_BIT_INO_T
++size_t __getdirentries64(int fd, void *buf, size_t bufsize, __darwin_off_t *basep);
++#endif /* __DARWIN_64_BIT_INO_T */
++struct dirent *_readdir_unlocked(DIR *) __DARWIN_INODE64(_readdir_unlocked);