void-packages/srcpkgs/firebird/patches/006-musl-glibc.patch

12 lines
417 B
Diff

--- src/common/classes/rwlock.h 2015-03-27 14:47:01.000000000 +0100
+++ src/common/classes/rwlock.h 2016-02-24 15:11:46.043602883 +0100
@@ -191,7 +191,7 @@
void init()
{
-#if defined(LINUX) && !defined(USE_VALGRIND)
+#if defined(LINUX) && defined(__GLIBC__) && !defined(USE_VALGRIND)
pthread_rwlockattr_t attr;
if (pthread_rwlockattr_init(&attr))
system_call_failed::raise("pthread_rwlockattr_init");