dbpware-for-solaris/openssl3/src/0003-Provide-socklen_t-on-Solaris-2.6.patch
2022-04-05 21:26:37 +02:00

28 lines
737 B
Diff

From bb038a4df281e1104f6748d8dcc2803ea9728dd5 Mon Sep 17 00:00:00 2001
From: "Tom G. Christensen" <tgc@jupiterrise.com>
Date: Wed, 27 Oct 2021 20:48:25 +0200
Subject: [PATCH 3/7] Provide socklen_t on Solaris 2.6
---
crypto/bio/bio_local.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/crypto/bio/bio_local.h b/crypto/bio/bio_local.h
index 749e8f810c..f1c9aa9473 100644
--- a/crypto/bio/bio_local.h
+++ b/crypto/bio/bio_local.h
@@ -141,6 +141,10 @@ struct bio_st {
typedef unsigned int socklen_t;
# endif
+# if !defined(socklen_t) && ((defined(sun) || defined(__sun)))
+typedef size_t socklen_t;
+# endif
+
extern CRYPTO_RWLOCK *bio_lookup_lock;
int BIO_ADDR_make(BIO_ADDR *ap, const struct sockaddr *sa);
--
2.27.0