patch-2.0.1 linux/include/linux/dirent.h

Next file: linux/include/linux/ext2_fs.h
Previous file: linux/include/linux/affs_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.0/linux/include/linux/dirent.h linux/include/linux/dirent.h
@@ -1,13 +1,11 @@
 #ifndef _LINUX_DIRENT_H
 #define _LINUX_DIRENT_H
 
-#include <linux/limits.h>
-
 struct dirent {
 	long		d_ino;
 	off_t		d_off;
 	unsigned short	d_reclen;
-	char		d_name[NAME_MAX+1];
+	char		d_name[256]; /* We must not include limits.h! */
 };
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov