diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/getdents.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/getdents.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/getdents.c b/sysdeps/unix/sysv/linux/getdents.c index ac4979efb2..9af50eff92 100644 --- a/sysdeps/unix/sysv/linux/getdents.c +++ b/sysdeps/unix/sysv/linux/getdents.c @@ -56,6 +56,7 @@ extern int __have_no_getdents64 attribute_hidden; Here is the kernel definition of `struct dirent' as of 2.1.20: */ +#ifndef __KERNEL_DIRENT struct kernel_dirent { long int d_ino; @@ -64,6 +65,7 @@ struct kernel_dirent char d_name[256]; }; +# ifdef __NR_getdents64 struct kernel_dirent64 { uint64_t d_ino; @@ -72,6 +74,8 @@ struct kernel_dirent64 unsigned char d_type; char d_name[256]; }; +# endif +#endif #ifndef __GETDENTS # define __GETDENTS __getdents |