summaryrefslogtreecommitdiffstats
path: root/tdesu/tdesud
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-10-18 13:55:49 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-18 14:28:48 +0200
commit7d4e25814c489c3e2acd92f5a58384f12adb6e2a (patch)
treec1c0b88d9615a1a37f16b91847e43f47c018c07c /tdesu/tdesud
parent0f2ad67259c94671dd9b3b1960ccf7aebe31f292 (diff)
downloadtdebase-7d4e25814c489c3e2acd92f5a58384f12adb6e2a.tar.gz
tdebase-7d4e25814c489c3e2acd92f5a58384f12adb6e2a.zip
Fix FTBFS on openbsd because of missing header in tdesu
Signed-off-by: François Andriot <francois.andriot@free.fr>"
Diffstat (limited to 'tdesu/tdesud')
-rw-r--r--tdesu/tdesud/tdesud.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdesu/tdesud/tdesud.cpp b/tdesu/tdesud/tdesud.cpp
index 5e4f5122a..3d64bc840 100644
--- a/tdesu/tdesud/tdesud.cpp
+++ b/tdesu/tdesud/tdesud.cpp
@@ -45,7 +45,9 @@
#include <pwd.h>
#include <errno.h>
+#ifndef __OpenBSD__
#include <sys/prctl.h>
+#endif
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -249,7 +251,9 @@ int create_socket()
int main(int argc, char *argv[])
{
+#ifndef __OpenBSD__
prctl(PR_SET_DUMPABLE, 0);
+#endif
TDEAboutData aboutData("tdesud", I18N_NOOP("TDE su daemon"),
Version, I18N_NOOP("Daemon used by tdesu"),