From b5a79e17aa6e03fac3fac7092bb0abc241918da9 Mon Sep 17 00:00:00 2001 From: Petr Vanek Date: Mon, 18 Oct 2010 20:49:53 +0200 Subject: [PATCH] patches to build on BSD by Christopher VdoP --- lib/kpty.cpp | 6 ++++++ src/CMakeLists.txt | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/kpty.cpp b/lib/kpty.cpp index 394df81..e4faea5 100644 --- a/lib/kpty.cpp +++ b/lib/kpty.cpp @@ -24,6 +24,12 @@ #include "kpty_p.h" + +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) +#define HAVE_LOGIN +#define HAVE_LIBUTIL_H +#endif + #ifdef __sgi #define __svr4__ #endif diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6775d9f..c990f6c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -41,8 +41,8 @@ set ( CMAKE_BUILD_TYPE ) #| Link Qt4 Libraries -target_link_libraries ( test ${QT_LIBRARIES} ) +target_link_libraries ( test ${QT_LIBRARIES} util ) #| Link qtermwidget Library -target_link_libraries ( test ${QTERMWIDGET_LIB} ) +target_link_libraries ( test ${QTERMWIDGET_LIB} util )