1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 005_fix-pthreads-detect.dpatch by <divanov@creditreform.bg>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Fix pthreads detection
9 --- firebird2-1.5.2.orig/src/common/classes/locks.h
10 +++ firebird2-1.5.2/src/common/classes/locks.h
17 // It is relatively easy to avoid using this header. Maybe do the same stuff like
18 // in thd.h ? This is Windows platform maintainers choice
24 +#elif defined(SOLARIS)
31 #endif /* MULTI_THREAD */
39 /* Process-local spinlock. Used to manage memory heaps in threaded environment. */
40 // Windows version of the class
43 /* Process-local spinlock. Used to manage memory heaps in threaded environment. */
44 // Pthreads version of the class
45 -#if !defined(SOLARIS) && !defined(DARWIN) && !defined(FREEBSD)
46 +#if !defined(SOLARIS) && !defined(DARWIN) && !defined(FREEBSD) && !defined(_POSIX_THREAD_IS_GNU_PTH)
49 pthread_spinlock_t spinlock;
51 system_call_failed::raise();
54 -#else // DARWIN and FREEBSD
55 +#else // DARWIN, FREEBSD and gnu pth
58 pthread_mutex_t mlock;