diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/direntry.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/direntry.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/direntry.h b/sysdeps/unix/sysv/linux/direntry.h new file mode 100644 index 0000000000..1d661d642a --- /dev/null +++ b/sysdeps/unix/sysv/linux/direntry.h @@ -0,0 +1,14 @@ +/* Get `struct dirent' from the Linux kernel header file. */ + +#ifndef _DIRENTRY_H +#define _DIRENTRY_H + +#include <linux/dirent.h> + +#define d_fileno d_ino /* backwards compatibility */ + +#undef _DIRENT_HAVE_D_NAMLEN +#define _DIRENT_HAVE_D_RECLEN +#define _DIRENT_HAVE_D_OFF + +#endif /* _DIRENTRY_H */ |