summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-12-22 18:56:54 +1100
committerDarren Tucker <dtucker@dtucker.net>2020-12-22 18:56:54 +1100
commit0f2e21c9dca89598b694932b5b05848380a23ec0 (patch)
tree62dcb5fa7ae3a6d943486b85f7c29ef634426370
parent3e9811e57b57ee66b0f70d99d7258da3153b0e8a (diff)
downloadopenssh-git-0f2e21c9dca89598b694932b5b05848380a23ec0.tar.gz
Include stdio.h for FILE in misc.h.
Fixes build on at least OpenBSD.
-rw-r--r--openbsd-compat/port-net.c1
-rw-r--r--sshpty.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/port-net.c b/openbsd-compat/port-net.c
index d7d8c6fa..da6d4467 100644
--- a/openbsd-compat/port-net.c
+++ b/openbsd-compat/port-net.c
@@ -26,6 +26,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
+#include <stdio.h>
#include <string.h>
#include <unistd.h>
diff --git a/sshpty.c b/sshpty.c
index bce09e25..cae0b977 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -27,6 +27,7 @@
#endif
#include <pwd.h>
#include <stdarg.h>
+#include <stdio.h>
#include <string.h>
#include <termios.h>
#ifdef HAVE_UTIL_H