GCC 4.7.0 no longer automatically includes unistd.h. This causes problems when
compiling "Sources/qtsingleapplication/qtlocalpeer.cpp." Adding #include
<unistd.h> fixes the problem.
The compilation error is following:
../Sources/qtsingleapplication/qtlocalpeer.cpp: In constructor
‘QtLocalPeer::QtLocalPeer(QObject*, const QString&)’:
../Sources/qtsingleapplication/qtlocalpeer.cpp:96:54: error: ‘::getuid’ has
not been declared
../Sources/qtsingleapplication/qtlocalpeer.cpp:96:54: note: suggested
alternative:
In file included from
../Sources/qtsingleapplication/qtlockedfile_unix.cpp:42:0,
from ../Sources/qtsingleapplication/qtlocalpeer.cpp:60:
/usr/include/unistd.h:698:16: note: ‘QtLP_Private::getuid’
make[1]: *** [../Objects/qtlocalpeer.o] Error 1
Original issue reported on code.google.com by L.Jirkov...@gmail.com on 26 Apr 2012 at 4:19
Original issue reported on code.google.com by
L.Jirkov...@gmail.com
on 26 Apr 2012 at 4:19