You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi William! Got two issue around with macOS builds - just want share with you
Removing old macros definition for higher OpenSSL version (MacOS mostly-didn't check it under linux compilation yet) - we got that macros defined in openssl library at least for macports version
diff --git a/src/ptclib/pssl.cxx b/src/ptclib/pssl.cxx
index 6ef2ecb..1a6cda7 100644
--- a/src/ptclib/pssl.cxx+++ b/src/ptclib/pssl.cxx@@ -670,7 +670,7 @@ PSSLDiffieHellman::~PSSLDiffieHellman()
DH_free(dh);
}
-#ifdef P_d2i_DHparams_bio_OLD+#if defined(P_d2i_DHparams_bio_OLD) && OPENSSL_VERSION_NUMBER < 0x100020efL
// 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...
And the second one(oldest) pthread_yield is not here
diff --git a/src/ptlib/unix/tlibthrd.cxx b/src/ptlib/unix/tlibthrd.cxx
index 4a30dd0..8402cd7 100644
--- a/src/ptlib/unix/tlibthrd.cxx+++ b/src/ptlib/unix/tlibthrd.cxx@@ -1534,7 +1534,11 @@ PTimedMutex::~PTimedMutex()
for (PINDEX i = 0; i < 100; ++i) {
if ((result = pthread_mutex_destroy(&m_mutex)) != EBUSY)
break;
+#ifdef __MACH__+ sched_yield();+#else
pthread_yield();
+#endif
}
}
Also it's an issue with installing version.h file under macOS - but emacs ruined all tabs/spaces in Makefile.in so the diff it's just uninformative - will send a bit later
The text was updated successfully, but these errors were encountered:
Hi William! Got two issue around with macOS builds - just want share with you
Also it's an issue with installing version.h file under macOS - but emacs ruined all tabs/spaces in Makefile.in so the diff it's just uninformative - will send a bit later
The text was updated successfully, but these errors were encountered: