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 --- firebird-1.5.4.4910/src/common/classes/locks.h.orig 2007-01-22 13:27:50.000000000 +0100
10 +++ firebird-1.5.4.4910/src/common/classes/locks.h 2007-02-17 23:02:48.169652007 +0100
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) && !defined(AIX) && !defined(HPUX)
46 +#if !defined(SOLARIS) && !defined(DARWIN) && !defined(FREEBSD) && !defined(AIX) && !defined(HPUX) && !defined(_POSIX_THREAD_IS_GNU_PTH)
49 pthread_spinlock_t spinlock;
51 system_call_failed::raise();
54 -#else // DARWIN, FREEBSD, AIX, HPUX
55 +#else // DARWIN, FREEBSD, AIX, HPUX and gnu pth
58 pthread_mutex_t mlock;