diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2021-04-12 18:41:42 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2021-04-12 19:36:26 +0000 |
commit | 5262875229eddcbdafc967e5b5ea4c4506fd7a6f (patch) | |
tree | cb0d77aa5651a14ccc98d8e0d3c5f3e492a5d174 /x11-toolkits/fox17/files | |
parent | 6ba4287ee0dcfbc1db119e672dc0936511db665b (diff) | |
download | ports-5262875229eddcbdafc967e5b5ea4c4506fd7a6f.tar.gz ports-5262875229eddcbdafc967e5b5ea4c4506fd7a6f.zip |
Diffstat (limited to 'x11-toolkits/fox17/files')
-rw-r--r-- | x11-toolkits/fox17/files/patch-lib_FXReadWriteLock.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/x11-toolkits/fox17/files/patch-lib_FXReadWriteLock.cpp b/x11-toolkits/fox17/files/patch-lib_FXReadWriteLock.cpp new file mode 100644 index 000000000000..426ee795d107 --- /dev/null +++ b/x11-toolkits/fox17/files/patch-lib_FXReadWriteLock.cpp @@ -0,0 +1,17 @@ +pthread_rwlockattr_setkind_np() is not implemented on FreeBSD. This function +was contained in an ifdef in version 1.7.75. The release notes for 1.7.76 only +state that not all systems have this function, but the supposed fix is a +regression on FreeBSD. + +--- lib/FXReadWriteLock.cpp.orig 2021-04-02 00:40:37 UTC ++++ lib/FXReadWriteLock.cpp +@@ -70,7 +70,9 @@ FXReadWriteLock::FXReadWriteLock(){ + FXASSERT_STATIC(sizeof(data)>=sizeof(pthread_rwlock_t)); + pthread_rwlockattr_t rwlockatt; + pthread_rwlockattr_init(&rwlockatt); ++#if defined(__linux__) + pthread_rwlockattr_setkind_np(&rwlockatt,PTHREAD_RWLOCK_PREFER_WRITER_NP); ++#endif + pthread_rwlock_init((pthread_rwlock_t*)data,&rwlockatt); + pthread_rwlockattr_destroy(&rwlockatt); + #else |