[kde-solaris] FIONREAD undeclared in kdelib/kdecore/network

Christopher Layne clayne at anodized.com
Sat Aug 21 21:48:06 CEST 2004


I see your point too,

So you're referring to ioctl.h?

I'm not saying it's a Solaris nor gcc bug. I'm saying it's a compilation
problem. GCC cannot possibly define BSD_COMP for everything - just because
it's compiling on Solaris.

KDE is obviously written with BSD heavily targeted. But if one expects
full portability, the dev side has to take that into account by

#ifdef USE_SOLARIS
#define BSD_COMP
#endif

Or something similar.

-cl


On Sat, Aug 21, 2004 at 02:29:27PM -0400, Stefan Teleman wrote:
> On Saturday 21 August 2004 03:58, Christopher Layne wrote:
> > How is that a GCC bug?
> 
> Because it needs -DBSD_COMP added. Solaris is no longer a derivative 
> of BSD, and has not been so for a long while. You don't need 
> -DBSD_COMP when building with SunProCC, and including sys/fileio.h. 
> Neither is sys/fileio.h guarded by #ifdef BSD_COMP in Sun's header 
> files.
> 
> I do see your point that not requiring pointless defines makes things 
> easier, in general.
> 
> --Stefan
> 
> -----
> -- 
> Stefan Teleman          'Nobody Expects the Spanish Inquisition'
> steleman at nyc.rr.com                          -Monty Python


More information about the kde-solaris mailing list