$NetBSD: patch-ba,v 1.6 2007/03/14 17:12:48 yyamano Exp $

--- src/ptclib/pssl.cxx.orig	2006-07-23 13:46:14.000000000 +0930
+++ src/ptclib/pssl.cxx	2007-09-01 16:37:13.000000000 +0930
@@ -786,7 +786,7 @@
     DH_free(dh);
 }
 
-#if defined(__BEOS__) || defined(__APPLE__)
+#if defined(__BEOS__) || ((defined(__NetBSD__) || defined(__APPLE__)) && OPENSSL_VERSION_NUMBER < 0x00908000L)
 // 2/21/04 Yuri Kiryanov - fix for compiler choke on BeOS for usage of
 // SSL function d2i_DHparams_bio below in PSSLDiffieHellman::Load
 // 5/26/06 Hannes Friederich - Mac OS X seems to need that fix too...
