summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-01-05 19:02:17 +0100
committerjimw@mysql.com <>2005-01-05 19:02:17 +0100
commitc1593ecf6601fa93882af78100e48e42d19fafd7 (patch)
treea03e4f00842a60b75b71d95f91c0418b94c5060d /include
parent954d0181ec65595d887bd2953c0b8a4bbd228ef1 (diff)
downloadmariadb-git-c1593ecf6601fa93882af78100e48e42d19fafd7.tar.gz
Allow DEFAULT_THREAD_STACK to be set via -DDEFAULT_THREAD_STACK=... so our
official binary builds for Linux that are built against a static glibc with a 128k thread stack size limit can be compiled with a default that doesn't result in a harmless (but oft-misunderstood) warning message. (Bug #6226)
Diffstat (limited to 'include')
-rw-r--r--include/my_pthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 40302f48bd5..7620b46e08b 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -624,6 +624,7 @@ extern int pthread_dummy(int);
/* All thread specific variables are in the following struct */
#define THREAD_NAME_SIZE 10
+#ifndef DEFAULT_THREAD_STACK
#if defined(__ia64__)
/*
MySQL can survive with 32K, but some glibc libraries require > 128K stack
@@ -633,6 +634,7 @@ extern int pthread_dummy(int);
#else
#define DEFAULT_THREAD_STACK (192*1024L)
#endif
+#endif
struct st_my_thread_var
{