summaryrefslogtreecommitdiff
path: root/databases/firebird-client/files/patch-jrd::thd.c
diff options
context:
space:
mode:
Diffstat (limited to 'databases/firebird-client/files/patch-jrd::thd.c')
-rw-r--r--databases/firebird-client/files/patch-jrd::thd.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/firebird-client/files/patch-jrd::thd.c b/databases/firebird-client/files/patch-jrd::thd.c
new file mode 100644
index 000000000000..a09c3fe4e1c3
--- /dev/null
+++ b/databases/firebird-client/files/patch-jrd::thd.c
@@ -0,0 +1,20 @@
+--- jrd/thd.c.orig Thu May 24 14:11:11 2001
++++ jrd/thd.c Sun Jul 7 14:52:07 2002
+@@ -2605,7 +2605,7 @@
+ int detach_state=PTHREAD_CREATE_DETACHED
+ #endif
+
+-#if ( !defined HP10 && !defined linux )
++#if ( !defined HP10 && !defined linux && !defined FREEBSD )
+
+ state = pthread_attr_init (&pattr);
+ if (state)
+@@ -2628,7 +2628,7 @@
+ return state;
+
+ #else
+-#ifdef linux
++#if ( defined linux || defined FREEBSD )
+ if (state = pthread_create (&thread, NULL, routine, arg))
+ return state;
+ return pthread_detach (thread);