summaryrefslogtreecommitdiff
path: root/ndb/src/common/portlib
diff options
context:
space:
mode:
authortomas@poseidon.bredbandsbolaget.se <>2004-06-17 00:34:05 +0000
committertomas@poseidon.bredbandsbolaget.se <>2004-06-17 00:34:05 +0000
commit23209c023c164823db5d2b8482ce0b221c13de3e (patch)
tree46d6af8c1e1ba5606ff4a51668b0087c318c6f7d /ndb/src/common/portlib
parent360fcee0193f804432e00ac69913007fd2aaa83d (diff)
downloadmariadb-git-23209c023c164823db5d2b8482ce0b221c13de3e.tar.gz
build fixes for ndb
Diffstat (limited to 'ndb/src/common/portlib')
-rw-r--r--ndb/src/common/portlib/NdbThread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ndb/src/common/portlib/NdbThread.c b/ndb/src/common/portlib/NdbThread.c
index b023e851d29..8683a37edcb 100644
--- a/ndb/src/common/portlib/NdbThread.c
+++ b/ndb/src/common/portlib/NdbThread.c
@@ -58,7 +58,9 @@ struct NdbThread* NdbThread_Create(NDB_THREAD_FUNC *p_thread_func,
pthread_attr_setguardsize(&thread_attr, 2048);
#endif
+#ifdef PTHREAD_CREATE_JOINABLE /* needed on SCO */
pthread_attr_setdetachstate(&thread_attr, PTHREAD_CREATE_JOINABLE);
+#endif
result = pthread_create(&tmpThread->thread,
&thread_attr,
p_thread_func,