chiark / gitweb /
pty: include linux/ioctl.h for TIOCSIG
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 18 Sep 2014 22:23:42 +0000 (00:23 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 18 Sep 2014 22:26:49 +0000 (00:26 +0200)
TIOCSIG is linux specific, so include the linux ioctl header to make sure
it's defined. We currently rely on some rather non-obvious recursive
includes. Make sure its always defined regardless of the system headers.

src/shared/pty.c

index 2863da489cabb140bd6e40b2368d7b5fc4deb87b..31123e5af20636e71476ae52043327af5e99ba5b 100644 (file)
@@ -45,6 +45,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <linux/ioctl.h>
 #include <pty.h>
 #include <signal.h>
 #include <stdbool.h>