From c91b6777d3d8fbfa65d016857fa36ecabff848f6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 15 May 2017 09:37:58 -0600 Subject: [PATCH] On HP-UX 11.0, sys/ioctl.h is not sufficient to make struct winsize visisble, we need termios.h too. --- lib/util/ttysize.c | 2 +- src/exec_pty.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/ttysize.c b/lib/util/ttysize.c index 01a9ca27c..85b178455 100644 --- a/lib/util/ttysize.c +++ b/lib/util/ttysize.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include /* for struct winsize on HP-UX */ #include #include "sudo_compat.h" diff --git a/src/exec_pty.c b/src/exec_pty.c index f614c9c62..e075a508b 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -32,6 +32,7 @@ #include #include #include +#include /* for struct winsize on HP-UX */ #include "sudo.h" #include "sudo_event.h" -- 2.40.0