summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-06-16 13:56:10 +0400
committerunknown <konstantin@mysql.com>2005-06-16 13:56:10 +0400
commit5216a1a9cc769b0334a98c62ced86c1081d9a039 (patch)
tree767863273c0b84d1b3e2821472cc9c488b34bc66 /extra
parent8771b9f4eb0e8a0a339fce9e2354b6affd582999 (diff)
parent0b5700c086e07ddb3f173203c05170372d853a20 (diff)
downloadmariadb-git-5216a1a9cc769b0334a98c62ced86c1081d9a039.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/opt/local/work/mysql-5.0-root
Diffstat (limited to 'extra')
-rw-r--r--extra/yassl/include/yassl_int.hpp7
-rw-r--r--extra/yassl/include/yassl_types.hpp11
2 files changed, 16 insertions, 2 deletions
diff --git a/extra/yassl/include/yassl_int.hpp b/extra/yassl/include/yassl_int.hpp
index d3f7754f074..60a78a3970e 100644
--- a/extra/yassl/include/yassl_int.hpp
+++ b/extra/yassl/include/yassl_int.hpp
@@ -164,7 +164,12 @@ private:
// openSSL bignum
struct BIGNUM {
- Integer int_;
+ /*
+ gcc 2.96 fix: because of two Integer classes (yaSSL::Integer and
+ TaoCrypt::Integer), we need to explicitly state the namespace
+ here to let gcc 2.96 deduce the correct type.
+ */
+ yaSSL::Integer int_;
void assign(const byte* b, uint s) { int_.assign(b,s); }
};
diff --git a/extra/yassl/include/yassl_types.hpp b/extra/yassl/include/yassl_types.hpp
index d1d3fb829de..01b82d95039 100644
--- a/extra/yassl/include/yassl_types.hpp
+++ b/extra/yassl/include/yassl_types.hpp
@@ -445,6 +445,15 @@ const opaque master_label[MASTER_LABEL_SZ + 1] = "master secret";
const opaque key_label [KEY_LABEL_SZ + 1] = "key expansion";
-} // naemspace
+} // namespace
+
+#if __GNUC__ == 2 && __GNUC_MINOR__ <= 96
+/*
+ gcc 2.96 bails out because of two declarations of byte: yaSSL::byte and
+ TaoCrypt::byte. TODO: define global types.hpp and move the declaration of
+ 'byte' there.
+*/
+using yaSSL::byte;
+#endif
#endif // yaSSL_TYPES_HPP