Linux NTFS driver won't compile on 2.4.9

Heikki Pernu (hpernu@Elma.Net)
Mon, 20 Aug 2001 16:18:00 +0300 (EETDST)


On official 2.4.9 kernel the included NTFS driver doesn't compile.
The problem was that unistr.c was using min macro without
it being defined.

The quick fix is to include linux/kernel.h which
defines this macro.

Please, apply this to stock kernel ASAP!
The official kernel is now broken.

Here is the patch:
Index: linux/fs/ntfs/unistr.c
===================================================================
RCS file: /usr/local/CVSroot/linux-2.4/fs/ntfs/unistr.c,v
retrieving revision 2.4
diff -c -r2.4 unistr.c
*** linux/fs/ntfs/unistr.c 2001/08/19 17:08:19 2.4
--- linux/fs/ntfs/unistr.c 2001/08/20 13:02:46
***************
*** 23,28 ****
--- 23,29 ----

#include <linux/string.h>
#include <asm/byteorder.h>
+ #include <linux/kernel.h>

#include "unistr.h"
#include "macros.h"

-
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/