Re: PROBLEM: NTFS routine fs/ntfs/unistr.c does not compile

From: Richard Russon (rich@flatcap.org)
Date: Wed Aug 22 2001 - 07:20:25 EST


Hi Harald,

> [1.] NTFS routine fs/ntfs/unistr.c does not compile
> [2.] NTFS routine fs/ntfs/unistr.c does not compile: the macro
> min(a,b,c) is not defined.

Yep.

> Comparison with Linux 2.4.7 revealed that
> 1. the pertaining line in unistr.c has changed from 2.4.7 to 2.4.9
> 2. the macro definition in file fs/ntfs/macros.h for macro min()
> has been dropped

Actually all the min/max macros have (finally) been moved to kernel.h.

> The solution was straight forward: add the (three-parameter) macro
> definition from include/linux/kernel.h to fs/ntfs/macros.h
> The patch is added below

The correct solution is to add the following to unistr.c:

  #include <linux/kernel.h>

Cheers,
  FlatCap (Rich)
  ntfs@flatcap.org

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



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:48 EST