Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.4.6 OS: Solaris I get this compile error on Solaris [ 6%] Building CXX object runtime/kioslave/fish/CMakeFiles/kio_fish.dir/fish.o /cad4/stevee/kde-svn/kdebase/runtime/kioslave/fish/fish.cpp: In function `int kdemain(int, char**)': /cad4/stevee/kde-svn/kdebase/runtime/kioslave/fish/fish.cpp:138: error: `setenv' was not declared in this scope It is fixed by including <kdefakes.h>
Created attachment 20606 [details] Include <kdefakes.h> so setenv is defined on Solaris
SVN commit 694860 by pino: #include kdefakes.h so we are sure to have the definition of setenv() BUGS: 145564, 145624, 145745, 145754, 147080 M +1 -0 apps/kdepasswd/passwd.cpp M +1 -0 runtime/kioslave/fish/fish.cpp M +1 -0 runtime/kurifilter-plugins/tests/kurifiltertest.cpp M +1 -0 workspace/kcminit/main.cpp M +1 -0 workspace/libs/workspace/kworkspace.cpp --- trunk/KDE/kdebase/apps/kdepasswd/passwd.cpp #694859:694860 @@ -27,6 +27,7 @@ #include <kdebug.h> #include <kstandarddirs.h> +#include <kdefakes.h> #include <kdesu/process.h> --- trunk/KDE/kdebase/runtime/kioslave/fish/fish.cpp #694859:694860 @@ -81,6 +81,7 @@ #include <fcntl.h> #include <errno.h> #include <sys/resource.h> +#include <kdefakes.h> #include "fish.h" #include "fishcode.h" --- trunk/KDE/kdebase/runtime/kurifilter-plugins/tests/kurifiltertest.cpp #694859:694860 @@ -25,6 +25,7 @@ #include <ksharedconfig.h> #include <klocale.h> #include <kio/netaccess.h> +#include <kdefakes.h> #include <QtCore/QDir> #include <QtCore/QRegExp> --- trunk/KDE/kdebase/workspace/kcminit/main.cpp #694859:694860 @@ -43,6 +43,7 @@ #endif #include <kservicetypetrader.h> +#include <kdefakes.h> static int ready[ 2 ]; static bool startup = false; --- trunk/KDE/kdebase/workspace/libs/workspace/kworkspace.cpp #694859:694860 @@ -30,6 +30,7 @@ #include <QtDBus/QtDBus> #include <stdlib.h> // getenv() #include <ksmserver_interface.h> +#include <kdefakes.h> #ifdef Q_WS_X11 #include <X11/Xlib.h>