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 | 885a149feb0216ef4b499931cc4f9fac18549e30 (patch) | |
tree | 231cb70c9db105a8a334b3ff2481bb3aa7a8fa21 /main.c | |
parent | 82499bcc905578c848ba41e749dc4f832fdb7d1e (diff) | |
download | mandoc-885a149feb0216ef4b499931cc4f9fac18549e30.tar.gz mandoc-885a149feb0216ef4b499931cc4f9fac18549e30.tar.zst mandoc-885a149feb0216ef4b499931cc4f9fac18549e30.zip |
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 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.320 2019/03/04 13:01:57 schwarze Exp $ */ +/* $Id: main.c,v 1.321 2019/03/04 18:15:06 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org> @@ -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> |