summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--xconsole.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index de16a6a..567dccf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,7 +53,7 @@ AC_CHECK_FUNC(openpty, [HAS_OPENPTY="yes"])
if test "x$HAS_OPENPTY" = "xyes" ; then
AC_DEFINE([HAS_OPENPTY], 1,
[Define to 1 if you have the 'openpty' function.])
- AC_CHECK_HEADERS([util.h pty.h], [break])
+ AC_CHECK_HEADERS([util.h libutil.h pty.h], [break])
fi
diff --git a/xconsole.c b/xconsole.c
index 738cf34..24e284a 100644
--- a/xconsole.c
+++ b/xconsole.c
@@ -69,6 +69,9 @@ extern char *_XawTextGetSTRING(TextWidget ctx, XawTextPosition left,
# ifdef HAVE_UTIL_H
# include <util.h>
# endif
+# ifdef HAVE_LIBUTIL_H
+# include <libutil.h>
+# endif
# ifdef HAVE_PTY_H
# include <pty.h>
# endif