Index: kde4libs/CMakeLists.txt =================================================================== --- kde4libs.orig/CMakeLists.txt +++ kde4libs/CMakeLists.txt @@ -170,6 +170,10 @@ remove_definitions(-DQT3_SUPPORT_WARNING add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) +if (CMAKE_SYSTEM_NAME MATCHES SunOS) + add_definitions(-D__EXTENSIONS__ -D_XOPEN_SOURCE=600) +endif() + ################# setup the include directories ################# # for including config.h and for includes like