Version: (using KDE 4.3.3) Compiler: gcc (GCC) 4.2.1 20070719 [FreeBSD] OS: FreeBSD Installed from: FreeBSD Ports genkdmconf does default to the correct values however, unless the command is explicitly set in kdmrc, the shutdown command defaults to the Linux onces (which are incorrect for a BSD system). This results as <sys/param.h> is not included before <config.ci>, as a result BSD is not defined (except in the case of genkdmconf.c). The following patch makes sure <sys/param.h> is included so BSD is defined (if available): --- kdm/config.def +++ kdm/config.def @@ -32,6 +32,9 @@ #define KDMCONF KDE_CONFDIR "/kdm" #define KDMDATA KDE_DATADIR "/kdm" +#include <sys/param.h> /* This is required for BSD define (how else will we + known it exists?). */ + #ifdef _AIX # define HALT_CMD "/usr/sbin/shutdown -h now" # define REBOOT_CMD "/usr/sbin/shutdown -r now"
SVN commit 1093649 by ossi: make config.ci self-contained BUG: 214963 M +2 -0 config.def WebSVN link: http://websvn.kde.org/?view=rev&revision=1093649
SVN commit 1093855 by rkcosta: Backport r1093649 by ossi make config.ci self-contained CCBUG: 214963 M +2 -0 config.def WebSVN link: http://websvn.kde.org/?view=rev&revision=1093855