summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-01-14 11:27:26 +0200
committermonty@mashka.mysql.fi <>2003-01-14 11:27:26 +0200
commit8dd439e751f908af22ebd11197fd56ade76aa5fa (patch)
treed53ba7e1a43cc73daf4f75fa37f9467d8792fd64 /include
parent1bc3105da34c174f1ffe848a01e9cfb0d4ebc2ec (diff)
downloadmariadb-git-8dd439e751f908af22ebd11197fd56ade76aa5fa.tar.gz
Guard against compiling without -fno-exceptions
Allocate bigger default thread stack because of problems with glibc Fixed bug in UPDATE ... not_null_field=expression_that_returns_null Fixed bug in replication when using auto_increment and LOAD DATA INFILE
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h7
-rw-r--r--include/my_pthread.h8
2 files changed, 13 insertions, 2 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 749a326f86f..3b66b3cbc16 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -153,6 +153,13 @@ C_MODE_END
#undef HAVE_INITGROUPS
#endif
+/* gcc/egcs issues */
+
+#if defined(__GNUC) && defined(__EXCEPTIONS)
+#error "Please add -fno-exceptions to CXXFLAGS and reconfigure/recompile"
+#endif
+
+
/* Fix a bug in gcc 2.8.0 on IRIX 6.2 */
#if SIZEOF_LONG == 4 && defined(__LONG_MAX__)
#undef __LONG_MAX__ /* Is a longlong value in gcc 2.8.0 ??? */
diff --git a/include/my_pthread.h b/include/my_pthread.h
index f75ca8f601a..e0394bc978a 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -581,9 +581,13 @@ extern int pthread_dummy(int);
#define THREAD_NAME_SIZE 10
#if defined(__ia64__)
-#define DEFAULT_THREAD_STACK (128*1024)
+/*
+ MySQL can survive with 32K, but some glibc libraries require > 128K stack
+ To resolve hostnames
+*/
+#define DEFAULT_THREAD_STACK (192*1024L)
#else
-#define DEFAULT_THREAD_STACK (64*1024)
+#define DEFAULT_THREAD_STACK (192*1024L)
#endif
struct st_my_thread_var