lkml.org 
[lkml]   [2001]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: PROBLEM: NTFS routine fs/ntfs/unistr.c does not compile
From
Date
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/

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