Re: include/linux/posix_types.h

Matthias Urlichs (smurf@work.smurf.noris.de)
13 Jan 1998 02:23:22 +0100


Andrew Pollard <andrew@odie.demon.co.uk> writes:
>
> Is there a 'good' reason why include/linux/posix_types.h in 2.0.33
> and 2.1.78 defines NULL in the way it does?
>
> #ifndef NULL
> # define NULL ((void *) 0)
> #endif
>
It's simple and easy. ;-)

> This causes some problems with the latest egcs compilers and using
> c++

If you use EGCS you should probably also switch to glibc which doesn't
include linux/anything (or asm/anything for that matter), and since there
is no C++ kernel code you won't have a problem any more.

That being said, you might convert this into a machine-applyable patch and
send it to Linus...

-- 
Matthias Urlichs
noris network GmbH