--- a/src/dir.cc
+++ b/src/dir.cc
@@ -98,8 +98,8 @@
 bool ListDir(int dir_fd, Arena& arena, std::vector<char*>& entries, bool precompose_unicode,
              bool case_sensitive) {
   struct linux_dirent64 {
-    ino64_t d_ino;
-    off64_t d_off;
+    ino_t d_ino;
+    off_t d_off;
     unsigned short d_reclen;
     unsigned char d_type;
     char d_name[];
