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 )