summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.c b/client.c
index 98565c5d..108873e7 100644
--- a/client.c
+++ b/client.c
@@ -20,11 +20,11 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/wait.h>
+#include <sys/file.h>
#include <errno.h>
#include <event.h>
#include <fcntl.h>
-#include <imsg.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
@@ -330,7 +330,9 @@ client_main(struct event_base *base, int argc, char **argv, int flags, int feat)
cfmakeraw(&tio);
tio.c_iflag = ICRNL|IXANY;
tio.c_oflag = OPOST|ONLCR;
+#ifdef NOKERNINFO
tio.c_lflag = NOKERNINFO;
+#endif
tio.c_cflag = CREAD|CS8|HUPCL;
tio.c_cc[VMIN] = 1;
tio.c_cc[VTIME] = 0;