summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2013-05-27 16:35:42 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2013-05-27 16:35:42 +0200
commitef1e767ae37d82bf821bda5062989a05917b7211 (patch)
tree8ae561c7742fb76464bee0b9e32371eff85eca00 /include/my_pthread.h
parent9bc4c4183df327140b5f477993f10f08282d977f (diff)
downloadmariadb-git-ef1e767ae37d82bf821bda5062989a05917b7211.tar.gz
MDEV-4553 - Fixes for compilation under NetBSD.
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 5a921fe0f26..d9aae5f47c9 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -119,7 +119,6 @@ int pthread_cancel(pthread_t thread);
#define HAVE_LOCALTIME_R 1
#define _REENTRANT 1
#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
-#define PTHREAD_STACK_MIN 65536
#undef SAFE_MUTEX /* This will cause conflicts */
#define pthread_key(T,V) DWORD V
@@ -857,6 +856,11 @@ extern uint thd_lib_detected;
#define mysql_mutex_record_order(A,B) do { } while(0)
#endif
+/* At least Windows and NetBSD do not have this definition */
+#ifndef PTHREAD_STACK_MIN
+#define PTHREAD_STACK_MIN 65536
+#endif
+
#ifdef __cplusplus
}
#endif