diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-03-04 18:15:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-03-04 18:15:06 +0000 |
commit | 41a7c857dd99f9a71bb60680e0cbc651feec8808 (patch) | |
tree | 556335d3c8952c7f311bd6c49a0d58c348d25655 /main.c | |
parent | 0ed84be1c5c76919d5b1a28b4380dde2c8856f96 (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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> |