Re: [PATCH] include/linux/coda.h

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 22 May 2001 19:06:42 +0100 (BST)


> When compiling the kernel under FreeBSD, __KERNEL__ is defined, but
> __linux__ is not. I think this is an error on the part of the header file,
> because on non-Linux build environments, which would otherwise compile the
> Linux kernel correctly, do not have __linux__ defined.

Thats a problem with your compiler setup.

> However, not many people will probably find much use in compiling the
> kernel on other platforms, so if you think this isn't worth inclusion, I
> totally understand. I'm in the process of porting UML to FreeBSD, and
> having this patch in the tree would make my job slightly easier.

Teaching your gcc to do -D__linux__ would be cleaner and also catch the
zillion other cases that simply came out wrong instead of erroring

One shell script for your CC and off you go

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