From f18b6b01304df83941f96b515932897cc118a304 Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Tue, 13 Jan 2004 16:11:11 +0000 Subject: - Update to 1.5 RC8. [1] [2] - Note that libgds.so is now symlinked to libfbembed.so rather than libfbclient.so. This restores Firebird 1.0.x shared library compatibility and fixes PHP build. [2] PR: ports/61276 [1], ports/61310 [2] Submitted by: Gleb Smirnoff [1], Chris Knight (maintainer) [2] Approved by: nork (mentor) --- .../files/patch-src::common::classes::locks.h | 49 ---------------------- 1 file changed, 49 deletions(-) delete mode 100644 databases/firebird2-server/files/patch-src::common::classes::locks.h (limited to 'databases/firebird2-server/files/patch-src::common::classes::locks.h') diff --git a/databases/firebird2-server/files/patch-src::common::classes::locks.h b/databases/firebird2-server/files/patch-src::common::classes::locks.h deleted file mode 100644 index e2948dd4bbd2..000000000000 --- a/databases/firebird2-server/files/patch-src::common::classes::locks.h +++ /dev/null @@ -1,49 +0,0 @@ ---- src/common/classes/locks.h.orig Sun Aug 17 14:56:47 2003 -+++ src/common/classes/locks.h Wed Nov 12 11:12:25 2003 -@@ -77,7 +77,7 @@ - - /* Process-local spinlock. Used to manage memory heaps in threaded environment. */ - // Pthreads version of the class --#ifndef SOLARIS -+#if !defined(SOLARIS) && !defined(DARWIN) && !defined(FREEBSD) - class Spinlock { - private: - pthread_spinlock_t spinlock; -@@ -100,6 +100,7 @@ - } - }; - #else -+#ifdef SOLARIS - // Who knows why Solaris 2.6 have not THIS funny spins? - //The next code is not comlpeted but let me compile //Konstantin - class Spinlock { -@@ -123,6 +124,29 @@ - system_call_failed::raise(); - } - }; -+#else // DARWIN and FREEBSD -+class Spinlock { -+private: -+ pthread_mutex_t mlock; -+public: -+ Spinlock() { -+ if (pthread_mutex_init(&mlock, 0)) -+ system_call_failed::raise(); -+ } -+ ~Spinlock() { -+ if (pthread_mutex_destroy(&mlock)) -+ system_call_failed::raise(); -+ } -+ void enter() { -+ if (pthread_mutex_lock(&mlock)) -+ system_call_failed::raise(); -+ } -+ void leave() { -+ if (pthread_mutex_unlock(&mlock)) -+ system_call_failed::raise(); -+ } -+}; -+#endif - - #endif - #endif -- cgit v1.2.3