[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fwd: Re: Small fix needed to compile NTFS in Linux 2.4.9
In case anyone needs to compile the current kernel in CVS (2.4.9) including
the NTFS filesystem you'll have to make the following change to the file
linux/fs/ntfs/unistr.c.
---------- Forwarded Message ----------
Subject: Re: Small fix needed to compile NTFS in Linux 2.4.9
Date: Sun, 19 Aug 2001 02:11:48 +0100
From: Anton Altaparmakov <aia21@cam.ac.uk>
To: Juan Jose Comellas <jcomellas@novamens.com>
Cc: NTFS Maintainer <aia21@cus.cam.ac.uk>
Yes, known problem. This happened because someone changed all min/max
macros to be global macros throughout the kernel but while doing this
forgot to add this include to ntfs/unistr.c...
Thanks,
Anton
At 18:31 18/08/2001, Juan Jose Comellas wrote:
>I had to make a small fix to the file fs/ntfs/unistr.c to get it to compile
>under the standard Linux kernel 2.4.9. I compiled NTFS as a module. Here is
>the diff in case you haven't corrected it yet:
>
>--- unistr.c.orig Wed Aug 15 05:22:17 2001
>+++ unistr.c Sat Aug 18 14:26:34 2001
>@@ -21,6 +21,7 @@
> * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
> USA */
>
>+#include <linux/kernel.h>
> #include <linux/string.h>
> #include <asm/byteorder.h>
>
>
>The problem was that the macro min() was not defined (linux/kernel.h header
>not included), so there was an error in line 99.
>
>--
>Juan Jose Comellas
>(jcomellas@novamens.com)
--
"Nothing succeeds like success." - Alexandre Dumas
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Linux NTFS Maintainer / WWW: http://linux-ntfs.sf.net/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/
-------------------------------------------------------
--
Juan Jose Comellas
(juanjo@comellas.org)