Mailing List Archive

[PATCH] misc.h: add stdio.h include
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

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
Re: [PATCH] misc.h: add stdio.h include [ In reply to ]
done - thanks

On Wed, 3 Mar 2021, Mike Frysinger wrote:

> 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
>
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev@mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
>
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev