lkml.org 
[lkml]   [2001]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
I'm shure this is just a matter of adding
#include <linux/kernel.h> to
fs/ntfs/unistr.c file

anyway i did so and it compiled fine for me.
But really don't have a clue kernelhacking =)

On Friday 17 August 2001 05:20, Dirk Wetter wrote:
> hi,
>
> i fixed it for myself by redoing the changes (don't know what the
> first arg of min is supposed to be):
>
> --- fs/ntfs/unistr.c.OLD Thu Aug 16 22:26:06 2001
> +++ fs/ntfs/unistr.c Thu Aug 16 23:00:36 2001
> @@ -96,7 +96,7 @@
> __u32 cnt;
> wchar_t c1, c2;
>
> - for (cnt = 0; cnt < min(unsigned int, name1_len, name2_len); ++cnt)
> + for (cnt = 0; cnt < min(name1_len, name2_len); ++cnt)
> {
> c1 = le16_to_cpu(*name1++);
> c2 = le16_to_cpu(*name2++);
>
> --- fs/ntfs/macros.h.OLD Thu Aug 16 23:07:50 2001
> +++ fs/ntfs/macros.h Thu Aug 16 23:08:04 2001
> @@ -11,6 +11,12 @@
> #define NTFS_INO2VOL(ino) (&((ino)->i_sb->u.ntfs_sb))
> #define NTFS_LINO2NINO(ino) (&((ino)->u.ntfs_i))
>
> +/* Classical min and max macros still missing in standard headers... */
> +#ifndef min
> +#define min(a,b) ((a) <= (b) ? (a) : (b))
> +#define max(a,b) ((a) >= (b) ? (a) : (b))
> +#endif
> +
> #define IS_MAGIC(a,b) (*(int*)(a) == *(int*)(b))
> #define IS_MFT_RECORD(a) IS_MAGIC((a),"FILE")
> #define IS_INDEX_RECORD(a) IS_MAGIC((a),"INDX")
>
>
>
>
> ~dirkw
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--

Harald Skoglund
--Er ikke tøff nok til å ha sig.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.150 / U:1.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site