[kde-solaris] Solaris unistd.h

Hans Meine kde-solaris@mail.kde.org
Tue Feb 18 17:08:01 2003


I compiled KDE on Solaris several times now having no real unsolvable problems 
except that compiling just takes ages. However, especially kdenetwork often 
includes unistd.h and suffers from error messages like

ksirc/iocontroller.cpp:256: no matching function for call to 
`QCString::truncate64 (int)'

Similar messages come with open64 and so on and can be traced back to some bad 
defines in the mentioned header which confuse the compiler resp. sometimes 
the linker (if it reads the Qt headers after the #define).

Now what I find strange is that I never read anything about this problem on 
this list, is there a possible fix for the header? I am fixing it by putting 
#undef's in many places in kdenetwork, but I am now wondering if there's a 
better fix.

Ciao, /  /
    /  / ANS