From a70d09955b8fe499a1368b1701971f206cf6d752 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 15 Oct 2001 22:22:32 +0000 Subject: Merged patch from pre-glibc-2.2.4 files --- libc/sysdeps/linux/powerpc/bits/dirent.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/powerpc/bits/dirent.h') diff --git a/libc/sysdeps/linux/powerpc/bits/dirent.h b/libc/sysdeps/linux/powerpc/bits/dirent.h index 76794b08d..81562a8c4 100644 --- a/libc/sysdeps/linux/powerpc/bits/dirent.h +++ b/libc/sysdeps/linux/powerpc/bits/dirent.h @@ -16,6 +16,16 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +/* + * June 25, 2001 + * + * Removed d_type support for dirent and undefined _DIRENT_HAVE_D_TYPE; + * i.e. match the kernel structs and avoid any translation for now. + * Note: glibc fakes d_type for the dirent case. + * Note: dirent64 still has the d_type field. + */ + + #ifndef _DIRENT_H # error "Never use directly; include instead." #endif @@ -30,7 +40,6 @@ struct dirent __off64_t d_off; #endif unsigned short int d_reclen; - unsigned char d_type; char d_name[256]; /* We must not include limits.h! */ }; @@ -50,4 +59,4 @@ struct dirent64 #undef _DIRENT_HAVE_D_NAMLEN #define _DIRENT_HAVE_D_RECLEN #define _DIRENT_HAVE_D_OFF -#define _DIRENT_HAVE_D_TYPE +#undef _DIRENT_HAVE_D_TYPE -- cgit v1.2.3