summaryrefslogtreecommitdiffstats
path: root/lib/texpect/texpect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/texpect/texpect.c')
-rw-r--r--lib/texpect/texpect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/texpect/texpect.c b/lib/texpect/texpect.c
index d78808188b..75a32f4bed 100644
--- a/lib/texpect/texpect.c
+++ b/lib/texpect/texpect.c
@@ -41,7 +41,9 @@
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
-#ifdef HAVE_LIBUTIL_H
+#ifdef HAVE_BSD_LIBUTIL_H
+#include <bsd/libutil.h>
+#elif defined HAVE_LIBUTIL_H
#include <libutil.h>
#endif