diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2022-07-12 15:13:38 -0700 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2022-07-12 15:13:38 -0700 |
commit | fba2b5272b6fd4e65010021747049375f7a8eb4d (patch) | |
tree | c28be375eff165b0e7ffc793fee38db45efa6526 /graphics/openmvs/files/patch-libs_Common_CriticalSection.h | |
parent | security/heaan: Broken on armv7 (diff) |
graphics/openmvs: New port: Open Multi-View Stereo reconstruction library
Diffstat (limited to 'graphics/openmvs/files/patch-libs_Common_CriticalSection.h')
-rw-r--r-- | graphics/openmvs/files/patch-libs_Common_CriticalSection.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/openmvs/files/patch-libs_Common_CriticalSection.h b/graphics/openmvs/files/patch-libs_Common_CriticalSection.h new file mode 100644 index 000000000000..7229dbff5014 --- /dev/null +++ b/graphics/openmvs/files/patch-libs_Common_CriticalSection.h @@ -0,0 +1,20 @@ +--- 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; |