Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rhurlin authored and nyalldawson committed Apr 13, 2023
1 parent 06ed5bd commit cc094fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/grass/qtermwidget/kpty.cpp
Expand Up @@ -30,6 +30,7 @@
#if defined(__FreeBSD__) || defined(__DragonFly__)
#define HAVE_LOGIN
#define HAVE_LIBUTIL_H
#define HAVE_UTEMPTER
#endif

#if defined(__OpenBSD__)
Expand Down Expand Up @@ -92,6 +93,7 @@

#ifdef HAVE_UTEMPTER
extern "C" {
# include <ulog.h>
# include <utempter.h>
}
#else
Expand Down

0 comments on commit cc094fb

Please sign in to comment.