From 266e1366a71c0e2cd3c96a747508fbd42c446b13 Mon Sep 17 00:00:00 2001 From: zhoushuiqing Date: Thu, 10 Aug 2023 15:21:14 +0800 Subject: [PATCH] Add a definition for FILE variable Add the definition of the FILE variable to the bio.h header file of OpenSSL. --- openssl_source/openssl-1.1.1t/include/openssl/bio.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openssl_source/openssl-1.1.1t/include/openssl/bio.h b/openssl_source/openssl-1.1.1t/include/openssl/bio.h index ae559a5..514e107 100644 --- a/openssl_source/openssl-1.1.1t/include/openssl/bio.h +++ b/openssl_source/openssl-1.1.1t/include/openssl/bio.h @@ -14,6 +14,14 @@ # ifndef OPENSSL_NO_STDIO # include + +#ifndef __FILE_defined +#define __FILE_defined 1 +struct _IO_FILE; +/* The opaque type of streams. This is the definition used elsewhere. */ +typedef struct _IO_FILE FILE; +#endif + # endif # include -- 2.33.0