aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit885a149feb0216ef4b499931cc4f9fac18549e30 (patch)
tree231cb70c9db105a8a334b3ff2481bb3aa7a8fa21
parent82499bcc905578c848ba41e749dc4f832fdb7d1e (diff)
downloadmandoc-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.
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 257d82cc..ae3a6320 100644
--- a/main.c
+++ b/main.c
@@ -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>