summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-03-04 18:15:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-03-04 18:15:06 +0000
commit41a7c857dd99f9a71bb60680e0cbc651feec8808 (patch)
tree556335d3c8952c7f311bd6c49a0d58c348d25655 /main.c
parent0ed84be1c5c76919d5b1a28b4380dde2c8856f96 (diff)
downloadmandoc-41a7c857dd99f9a71bb60680e0cbc651feec8808.tar.gz
For TIOCGWINSZ, #include <termios.h> rather than <sys/termios.h>
like almost all other userland programs. This also improves portability: for example, it looks like <sys/termios.h> does not work on FreeBSD, or at least bapt@ did the same change over there.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index d7bda58e..810129e8 100644
--- a/main.c
+++ b/main.c
@@ -21,7 +21,6 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/param.h> /* MACHINE */
-#include <sys/termios.h>
#include <sys/wait.h>
#include <assert.h>
@@ -40,6 +39,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+#include <termios.h>
#include <time.h>
#include <unistd.h>