summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-11 02:56:00 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:23:00 +0100
commite4ef4e00f92514c7b7405965edc66eacf562bf8d (patch)
tree029ed7f23780020be41c3a738cce17a5f6592303
parenta64a2ffc7243373bf6a7bbc27f801a54a4630623 (diff)
downloadtdelibs-e4ef4e00f92514c7b7405965edc66eacf562bf8d.tar.gz
tdelibs-e4ef4e00f92514c7b7405965edc66eacf562bf8d.zip
Fix FTBFS on freebsd due to utmpx
[taken from FreeBSD kdelibs3 patches] Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e443c9e0b29809c1ba0c9133e2fea9cbc30ae937)
-rw-r--r--kdecore/kpty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kdecore/kpty.cpp b/kdecore/kpty.cpp
index bfa5659c1..4b17b20f7 100644
--- a/kdecore/kpty.cpp
+++ b/kdecore/kpty.cpp
@@ -68,7 +68,7 @@
#include <unistd.h>
#include <grp.h>
-#ifdef HAVE_LIBUTIL_H
+#if defined(HAVE_LIBUTIL_H) && (!defined(__FreeBSD__) || __FreeBSD_version < 900007)
# include <libutil.h>
# define USE_LOGIN
#elif defined(HAVE_UTIL_H)