[klibc] [PATCH] Fix the build for utils/fstype.h

H. Peter Anvin hpa at zytor.com
Mon Apr 28 16:28:24 PDT 2003


Bryan O'Sullivan wrote:
> Another post-2.5.68 one.  The cramfs header defines u8, so we must quiet
> it down.
> 
> 	<b
> 
> diff -Nru a/utils/fstype.c b/utils/fstype.c
> --- a/utils/fstype.c	Mon Apr 28 15:10:56 2003
> +++ b/utils/fstype.c	Mon Apr 28 15:10:56 2003
> @@ -19,7 +19,9 @@
>  #include <asm/byteorder.h>
>  
>  #include <linux/romfs_fs.h>
> +#define __KERNEL__
>  #include <linux/cramfs_fs.h>
> +#undef __KERNEL__
>  #include <linux/minix_fs.h>
>  #include <linux/ext2_fs.h>
>  #include "ext3_fs.h"
> 

No way I'm letting this crap into the tree.  Rather, I'd like to push
the fix into the kernel header, especially if this is a new phenomenon.
 The correct fix is to change u8 -> __u8 in the header.

	-hpa




More information about the klibc mailing list