summaryrefslogtreecommitdiffstats
path: root/tdecore
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-06-11 03:04:13 +0200
commit50b2ec504637d33a6bbfc297a9bb32c4fc2899f5 (patch)
treef0dd629547d14b661aecb90c35c0a39f8705c621 /tdecore
parent30a0743655d37b285512fc1f4169508f085abb42 (diff)
downloadtdelibs-50b2ec504637d33a6bbfc297a9bb32c4fc2899f5.tar.gz
tdelibs-50b2ec504637d33a6bbfc297a9bb32c4fc2899f5.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)
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/kpty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdecore/kpty.cpp b/tdecore/kpty.cpp
index 7f27f02f8..727166d87 100644
--- a/tdecore/kpty.cpp
+++ b/tdecore/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)