From 0bac5e931597ac5c6d1fa4f33e1e46b7a7d00b52 Mon Sep 17 00:00:00 2001 From: Peter Ganten Date: Mon, 27 Sep 1999 11:46:27 +0000 Subject: [PATCH] Fix for VFAT_IOCTL_READDIR_BOTH. --- files/dos_fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/dos_fs.c b/files/dos_fs.c index f67d3bf97f0..fc4527cecca 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c @@ -41,7 +41,6 @@ DECLARE_DEBUG_CHANNEL(file) /* Define the VFAT ioctl to get both short and long file names */ /* FIXME: is it possible to get this to work on other systems? */ #ifdef linux -#define VFAT_IOCTL_READDIR_BOTH _IOR('r', 1, long) /* We want the real kernel dirent structure, not the libc one */ typedef struct { @@ -51,6 +50,8 @@ typedef struct char d_name[256]; } KERNEL_DIRENT; +#define VFAT_IOCTL_READDIR_BOTH _IOR('r', 1, KERNEL_DIRENT [2] ) + #else /* linux */ #undef VFAT_IOCTL_READDIR_BOTH /* just in case... */ #endif /* linux */