From baeec202569469b28211eeed0fa0c41467bfdecc Mon Sep 17 00:00:00 2001 From: Rainer Hurling Date: Thu, 13 Apr 2023 18:33:08 +0200 Subject: [PATCH] Fix build on FreeBSD after qtermwidgets update After qtermwidgets has been updated in the GRASS provider, the build on FreeBSD is broken with the following error: .../src/plugins/grass/qtermwidgets/kpty.cpp:98:11:fatal error:'utmp.h' file not found. The patch circumstances this 'classic' utempter problem on FreeBSD. --- src/plugins/grass/qtermwidget/kpty.cpp | 2 ++ 1 file changed, 2 insertions(+) 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