summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/bits/dirent.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-14 11:09:46 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-14 11:09:46 +0000
commit62653059d61eae9c559b514bb126df9e2e845273 (patch)
treea295a9292cd4d22e4932e0054afd83cb268fbf15 /libc/sysdeps/linux/sparc/bits/dirent.h
parenta5cc55111f77315fc7e04613772237b52a3dbfdf (diff)
Scrub up some lingering problems preventing readdir64 from working
and creating several *64 problems, particualrly when client apps used -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64. All better now. -Erik
Diffstat (limited to 'libc/sysdeps/linux/sparc/bits/dirent.h')
-rw-r--r--libc/sysdeps/linux/sparc/bits/dirent.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/sparc/bits/dirent.h b/libc/sysdeps/linux/sparc/bits/dirent.h
index 88b718672..82d8663f2 100644
--- a/libc/sysdeps/linux/sparc/bits/dirent.h
+++ b/libc/sysdeps/linux/sparc/bits/dirent.h
@@ -30,7 +30,9 @@ struct dirent
__off64_t d_off;
#endif
unsigned short int d_reclen;
- /*unsigned char d_type;*/
+#ifdef __USE_FILE_OFFSET64
+ unsigned char d_type;
+#endif
char d_name[256]; /* We must not include limits.h! */
};
@@ -40,7 +42,7 @@ struct dirent64
__ino64_t d_ino;
__off64_t d_off;
unsigned short int d_reclen;
- /*unsigned char d_type;*/
+ unsigned char d_type;
char d_name[256]; /* We must not include limits.h! */
};
#endif