intel-sgx-ssl/0003-add-definition-for-FILE-variable.patch
zhoushuiqing 1c1b68c855
rename 0001-fix-secgear-build-error.patch to 0003-add-definition-for-FILE-variable.patch.
Signed-off-by: zhoushuiqing <zhoushuiqing2@huawei.com>
2023-08-10 10:06:29 +00:00

34 lines
957 B
Diff

From 266e1366a71c0e2cd3c96a747508fbd42c446b13 Mon Sep 17 00:00:00 2001
From: zhoushuiqing <zhoushuiqing2@huawei.com>
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 <stdio.h>
+
+#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 <stdarg.h>
--
2.33.0