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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/texpect/texpect.c b/lib/texpect/texpect.c
index 75a32f4bed..9256b5ee31 100644
--- a/lib/texpect/texpect.c
+++ b/lib/texpect/texpect.c
@@ -52,7 +52,12 @@
#endif /* STREAMPTY */
#include <popt.h>
+
+#ifdef HAVE_ERR_H
#include <err.h>
+#else
+#include <ccan/err/err.h>
+#endif
struct command {
enum { CMD_EXPECT = 0, CMD_SEND, CMD_PASSWORD } type;