diff options
author | François Andriot <[email protected]> | 2014-10-18 13:55:49 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-10-18 14:28:48 +0200 |
commit | 7d4e25814c489c3e2acd92f5a58384f12adb6e2a (patch) | |
tree | c1c0b88d9615a1a37f16b91847e43f47c018c07c /tdesu/tdesud/tdesud.cpp | |
parent | 0f2ad67259c94671dd9b3b1960ccf7aebe31f292 (diff) | |
download | tdebase-7d4e25814c489c3e2acd92f5a58384f12adb6e2a.tar.gz tdebase-7d4e25814c489c3e2acd92f5a58384f12adb6e2a.zip |
Fix FTBFS on openbsd because of missing header in tdesu
Signed-off-by: François Andriot <[email protected]>"
Diffstat (limited to 'tdesu/tdesud/tdesud.cpp')
-rw-r--r-- | tdesu/tdesud/tdesud.cpp | 4 |
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"), |