Messages in this thread | | | From | "Anthony Barbachan" <> | Subject | Re: bug in socket.h (and maybe many other kernel headerfiles) | Date | Sat, 18 Sep 1999 01:36:23 -0400 |
| |
----- Original Message ----- From: Sean Hunter <sean@uncarved.co.uk> To: Dipl.-Ing. Uwe Koloska <koloska@Rcs1.urz.tu-dresden.de> Cc: <linux-kernel@vger.rutgers.edu> Sent: Friday, September 17, 1999 1:17 PM Subject: Re: bug in socket.h (and maybe many other kernel headerfiles)
> On Fri, Sep 17, 1999 at 11:48:34AM +0200, Dipl.-Ing. Uwe Koloska wrote: > > Hello, > > > > I am not on this list by post by told so in REPORTING-BUGS. > > > > By installing kde-1.1.2 with gcc-2.95.1 I noticed a wrong declaration in > > /usr/incluce/linux/socket.h:109 > > > > ANSI C++ forbids implicit conversion from `void *' in return > > > > The right ANSI way to do it is to return a literal "0". > > > > By taking a quick glance on the other headerfiles there are many places that > > uses NULL without explicit conversion. > > > > Maybe (adhearing to ANSI???) NULL has to be defined "0" and not (void*) ... > > Why are you compiling kernel headers with a c++ compiler? The kernel > headers don't work in c++. > > Sean >
I had the same problem, though easily fixed by editing the header file. Libc5 systems use kernel headers.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |