Subject: Re: problems compiling kdelibs3
To: Jaromir Dolecek , Matthias Scheler <email@example.com>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
Date: 08/17/2002 18:07:14
On August 17, 2002 02:31 pm, Jaromir Dolecek wrote:
> Oh yeah, encountered this too. struct utmpx uses struct sockaddr_storage,
> which isn't defined if _XOPEN_SOURCE is defined (which some software
> apparently does define). I'm not sure what is the correct fix to this,
> but I just removed the
> #if !defined(_XOPEN_SOURCE) || (_XOPEN_SOURCE - 0) >= 500
> around struct sockaddr_storage definition in my <sys/socket.h>
> for now.
Ditto. I was about to send-pr it when I noticed a fix from Matthias Scheler
<firstname.lastname@example.org> go through the netbsd-changes mailing list so that fix
shouldn't be necessary any more. He did it as a patch to kdelibs2.
cvs rdiff -r0 -r1.1 pkgsrc/x11/kdelibs2/patches/patch-bz
I wondered if it wouldn't have made more sense to fix utmpx.h since it
doesn't seem to me that a system header should fail just by including it but
I didn't have time to check all the ramificatons.
D'Arcy J.M. Cain <email@example.com>