diff --git a/src/plugins/grass/qtermwidget/kpty.cpp b/src/plugins/grass/qtermwidget/kpty.cpp index af373cbcbbd8..1c1b1260a062 100644 --- a/src/plugins/grass/qtermwidget/kpty.cpp +++ b/src/plugins/grass/qtermwidget/kpty.cpp @@ -30,6 +30,7 @@ #if defined(__FreeBSD__) || defined(__DragonFly__) #define HAVE_LOGIN #define HAVE_LIBUTIL_H +#define HAVE_UTEMPTER #endif #if defined(__OpenBSD__) @@ -92,6 +93,7 @@ #ifdef HAVE_UTEMPTER extern "C" { +# include # include } #else