| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/openmvs/files/ |
Upload File : |
--- libs/Common/CriticalSection.h.orig 2022-07-12 17:18:30 UTC
+++ libs/Common/CriticalSection.h
@@ -53,7 +53,7 @@ class CriticalSection (protected)
public:
CriticalSection() {
- #ifdef __APPLE__
+ #if defined(__APPLE__) || defined(__FreeBSD__)
pthread_mutex_init(&mtx, NULL);
#else
mtx = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
@@ -62,7 +62,7 @@ class CriticalSection (protected)
~CriticalSection() { pthread_mutex_destroy(&mtx); }
void Clear() {
pthread_mutex_destroy(&mtx);
- #ifdef __APPLE__
+ #if defined(__APPLE__) || defined(__FreeBSD__)
pthread_mutex_init(&mtx, NULL);
#else
mtx = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;