How to test for gnu extensions
David Faure
faure at kde.org
Wed Feb 15 19:49:28 CET 2006
On Wednesday 15 February 2006 15:16, Thiago Macieira wrote:
> David Faure wrote:
> >Currently kdelibs fails to compile for me with cmake because S_ISSOCK
> > isn't detected
>
> Where is S_ISSOCK being used?
The compile error came from any .cpp file that included config.h and sys/stat.h, since it would
see two conflicting definition of S_ISSOCK.
But to answer your question:
kdesu/client.cpp: if (!S_ISSOCK(s.st_mode))
kdoctools/kio_help.cpp: if ( S_ISFIFO( buff.st_mode ) || S_ISSOCK ( buff.st_mode ) ) {
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list