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 #include -#ifdef HAVE_LIBUTIL_H +#if defined(HAVE_LIBUTIL_H) && (!defined(__FreeBSD__) || __FreeBSD_version < 900007) # include # define USE_LOGIN #elif defined(HAVE_UTIL_H)