summaryrefslogtreecommitdiff
path: root/mysys/my_pthread.c
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-02-25 21:43:24 +0200
committermonty@narttu.mysql.fi <>2003-02-25 21:43:24 +0200
commitb4fbb06ad88dee766d50323adaf5964fc01a8474 (patch)
treeef16fe4c8cc302b682517ba6fafcda8da6d043e7 /mysys/my_pthread.c
parent541ba610b1e2f42432330368e235259b9e3c0a41 (diff)
downloadmariadb-git-b4fbb06ad88dee766d50323adaf5964fc01a8474.tar.gz
Portability fix for HPUX10.20
Diffstat (limited to 'mysys/my_pthread.c')
-rw-r--r--mysys/my_pthread.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c
index 0de7041fae7..7ad4852558e 100644
--- a/mysys/my_pthread.c
+++ b/mysys/my_pthread.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 MySQL AB
+/* Copyright (C) 2000-2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -393,6 +393,7 @@ int pthread_signal(int sig, void (*func)())
#undef pthread_cond_wait
#undef pthread_cond_timedwait
#undef pthread_cond_t
+#undef pthread_attr_getstacksize
/*****************************************************************************
** Patches for AIX and DEC OSF/1 3.2
@@ -465,6 +466,15 @@ int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
}
#endif
+#if defined(HPUX10)
+
+void my_pthread_attr_getstacksize(pthread_attr_t *connection_attrib,
+ size_t *stack_size)
+{
+ *stack_size= pthread_attr_getstacksize(*connection_attrib);
+}
+#endif
+
#ifdef HAVE_POSIX1003_4a_MUTEX
/*