[PATCH] misc.h: add stdio.h include

Mike Frysinger vapier at gentoo.org
Wed Mar 3 18:29:40 AEDT 2021


This file uses FILE* but doesn't include stdio.h, so it fails to build
on platforms that don't happen to include that header via other includes
in here (e.g. building for WASM).
---
 misc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc.h b/misc.h
index 2de7eb5bfae2..0d04239e13d2 100644
--- a/misc.h
+++ b/misc.h
@@ -15,6 +15,7 @@
 #ifndef _MISC_H
 #define _MISC_H
 
+#include <stdio.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-- 
2.30.0



More information about the openssh-unix-dev mailing list