]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compile on NetBSD 5.0 (or anything else using an old 0.9.9-dev OpenSSL).
authorGregory P. Smith <greg@mad-scientist.com>
Wed, 13 Oct 2010 03:53:21 +0000 (03:53 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Wed, 13 Oct 2010 03:53:21 +0000 (03:53 +0000)
Modules/_ssl.c

index 254dde69eb2e41acf340806dea5ea831c4086333..4f7bb4d50dedb4c4131a0679779a4150e4ee0650 100644 (file)
@@ -113,8 +113,10 @@ static unsigned int _ssl_locks_count = 0;
 # undef HAVE_OPENSSL_RAND
 #endif
 
-/* SSL_CTX_clear_options() and SSL_clear_options() were first added in OpenSSL 0.9.8m */
-#if OPENSSL_VERSION_NUMBER >= 0x009080dfL
+/* SSL_CTX_clear_options() and SSL_clear_options() were first added in
+ * OpenSSL 0.9.8m but do not appear in some 0.9.9-dev versions such the
+ * 0.9.9 from "May 2008" that NetBSD 5.0 uses. */
+#if OPENSSL_VERSION_NUMBER >= 0x009080dfL && OPENSSL_VERSION_NUMBER != 0x00909000L
 # define HAVE_SSL_CTX_CLEAR_OPTIONS
 #else
 # undef HAVE_SSL_CTX_CLEAR_OPTIONS