summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-08-17 00:35:51 +0300
committermonty@hundin.mysql.fi <>2002-08-17 00:35:51 +0300
commit5773b6504a888d61af1cdf7c0764bff7860ab90a (patch)
treea5bba2df04761e778b4e626fc71182b2708f85ff /include/my_pthread.h
parent5ff30464a68f70e01664a0af8dd9406e839c99ab (diff)
downloadmariadb-git-5773b6504a888d61af1cdf7c0764bff7860ab90a.tar.gz
Fixed bug in blocking handling when compiling with OPENSSL (caused hangup in client code)
Fixed bug in SELECT DISTINCT ... ORDER BY not-used-column. Fixed bug in pthread_mutex_trylock with HPUX 11.0
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 9cf337702f7..aac0222c136 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -430,11 +430,14 @@ struct tm *localtime_r(const time_t *clock, struct tm *res);
#if defined(HPUX) && !defined(DONT_REMAP_PTHREAD_FUNCTIONS)
#undef pthread_cond_timedwait
-#undef pthread_mutex_trylock
#define pthread_cond_timedwait(a,b,c) my_pthread_cond_timedwait((a),(b),(c))
-#define pthread_mutex_trylock(a) my_pthread_mutex_trylock((a))
int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
struct timespec *abstime);
+#endif
+
+#if defined(HAVE_POSIX1003_4a_MUTEX) && !defined(DONT_REMAP_PTHREAD_FUNCTIONS)
+#undef pthread_mutex_trylock
+#define pthread_mutex_trylock(a) my_pthread_mutex_trylock((a))
int my_pthread_mutex_trylock(pthread_mutex_t *mutex);
#endif