summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@oracle.com>2011-07-21 17:45:38 +0200
committerJon Olav Hauglid <jon.hauglid@oracle.com>2011-07-21 17:45:38 +0200
commitaee88a4cc637e32c593a36fccceccb66906be591 (patch)
tree2a9efebe7251d42931b1fe56bd3d62e89fa33fa3 /dbug
parent39b4b14334924764649f73bb1624c50bdc67c4f2 (diff)
downloadmariadb-git-aee88a4cc637e32c593a36fccceccb66906be591.tar.gz
Bug#12779790 COMPILATION FAILS OS X 10.7 - IMPLICIT DECLARATION OF
FUNCTION 'PTHREAD_INIT' The problem was that compilation would fail with a warning: Implicit declaration of function 'pthread_init' if MySQL was compiled on OS X 10.7 (Lion). The reason was that pthread_init() is now part of an internal OS X pthread library so it was found by CMake. This patch fixes the problem by removing HAVE_PTHREAD_INIT and related code. pthread_init() was specific to MIT-pthreads which has not been supported since 4.1 and was therefore no longer relevant. No test case added.
Diffstat (limited to 'dbug')
-rw-r--r--dbug/dbug_analyze.c3
-rw-r--r--dbug/my_main.c3
-rw-r--r--dbug/tests.c3
3 files changed, 0 insertions, 9 deletions
diff --git a/dbug/dbug_analyze.c b/dbug/dbug_analyze.c
index 3d5713758ae..cd395cd3b02 100644
--- a/dbug/dbug_analyze.c
+++ b/dbug/dbug_analyze.c
@@ -571,9 +571,6 @@ int main (int argc, char **argv)
FILE *infile;
FILE *outfile = {stdout};
-#if defined(HAVE_PTHREAD_INIT)
- pthread_init(); /* Must be called before DBUG_ENTER */
-#endif
my_thread_global_init();
{
DBUG_ENTER ("main");
diff --git a/dbug/my_main.c b/dbug/my_main.c
index 48d092ca10a..490e1808dd2 100644
--- a/dbug/my_main.c
+++ b/dbug/my_main.c
@@ -16,9 +16,6 @@ char *argv[];
{
register int result, ix;
extern int factorial(int);
-#if defined(HAVE_PTHREAD_INIT)
- pthread_init(); /* Must be called before DBUG_ENTER */
-#endif
my_thread_global_init();
{
diff --git a/dbug/tests.c b/dbug/tests.c
index 837a477aef3..5fb84d48ffc 100644
--- a/dbug/tests.c
+++ b/dbug/tests.c
@@ -44,9 +44,6 @@ int main (int argc, char *argv[])
if (argc == 1)
return 0;
-#if defined(HAVE_PTHREAD_INIT)
- pthread_init(); /* Must be called before DBUG_ENTER */
-#endif
my_thread_global_init();
dup2(1, 2);