summaryrefslogtreecommitdiff
path: root/xconsole.c
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@daemonic.se>2013-01-16 01:30:20 +0100
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-19 08:47:32 -0800
commit2831823f608c1906211d5c55a098f48c8fad1a37 (patch)
treed452405428468f1de424e41f99be5e2d75c3537e /xconsole.c
parentcc0cf84461cfe2c31ddce34863c6433183e8a55d (diff)
Fix build on FreeBSD
libutil.h is needed on FreeBSD to get the definition of openpty(), add a configure check for this include, and include it in xconsole.c if it exists. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xconsole.c')
-rw-r--r--xconsole.c3
1 files changed, 3 insertions, 0 deletions
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