netdev
[Top] [All Lists]

Re: ANSI C++ problem in include/linux/socket.h

To: OKUJI Yoshinori <okuji@xxxxxxxxxxxxxxxxxxx>
Subject: Re: ANSI C++ problem in include/linux/socket.h
From: "Benjamin C.R. LaHaise" <blah@xxxxxxxxx>
Date: Wed, 10 Nov 1999 02:18:22 -0500 (EST)
Cc: netdev@xxxxxxxxxxxxxxx
In-reply-to: <19991108072259J.okuji@kuicr.kyoto-u.ac.jp>
Sender: owner-netdev@xxxxxxxxxxx
On Mon, 8 Nov 1999, OKUJI Yoshinori wrote:

>   Hello,
> 
>   When compiling lftp with gcc-2.95.2 on linux-2.2.13, I got this
> error:

Wrong fix.  The include files in 2.2.12+ are careful to define NULL as 0
when compiling C++ code, so something else you are #include'ing is
redefining NULL as ((void *)0) instead of the 0 it's supposed to be.

                -ben


<Prev in Thread] Current Thread [Next in Thread>