Details
Description
Compiling under solaris OS failed because of function 'uname' from sys/utsname.h is used but header file is not included.
/opt/gcc-4.8.2/bin/g++ -c -m64 -D_XOPEN_SOURCE=500 -D_EXTENSIONS_ -D_XPG6 -D_REENTRANT -D_PTHREADS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XKB -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_USE_ICU -DPCRE_HAVE_CONFIG_H -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I../../mkspecs/solaris-g++-64 -I. -I../../include -I../../include/QtCore -I../../include/QtCore/5.2.0 -I../../include/QtCore/5.2.0/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I.moc -I/usr/sfw/include -o .obj/qfileselector.o io/qfileselector.cpp
<command-line>:0:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
io/qfileselector.cpp:1:0: note: this is the location of the previous definition
/***************************************************************************
^
io/qfileselector.cpp: In static member function ‘static QStringList QFileSelectorPrivate::platformSelectors()’:
io/qfileselector.cpp:371:20: error: aggregate ‘QFileSelectorPrivate::platformSelectors()::utsname u’ has incomplete type and cannot be defined
struct utsname u;
^
io/qfileselector.cpp:372:17: error: ‘uname’ was not declared in this scope
if (uname(&u) != -1)
^