summaryrefslogtreecommitdiff
path: root/config.h.cmake
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 /config.h.cmake
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 'config.h.cmake')
-rw-r--r--config.h.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 3247093c613..8c146011c7b 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -219,7 +219,6 @@
#cmakedefine HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
#cmakedefine HAVE_PTHREAD_CONDATTR_CREATE 1
#cmakedefine HAVE_PTHREAD_CONDATTR_SETCLOCK 1
-#cmakedefine HAVE_PTHREAD_INIT 1
#cmakedefine HAVE_PTHREAD_KEY_DELETE 1
#cmakedefine HAVE_PTHREAD_KEY_DELETE 1
#cmakedefine HAVE_PTHREAD_KILL 1