diff options
| author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-11-06 10:15:27 +0100 |
|---|---|---|
| committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-11-06 10:15:27 +0100 |
| commit | 44b9190fb62a6a09276c765685cc8ddde9cb201f (patch) | |
| tree | ac61baa4cf259e02de0ce8f1c7b76b3713f2e257 /recipes/mysql/mysql-5.1.40-have_atomic_pthread_t.patch | |
| parent | c994c0a4526e8d7a16fecaceffde4f42ed1f45ff (diff) | |
| parent | 35cc93da885ac6d438da6aaed9517e91d4a7e6b3 (diff) | |
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/mysql/mysql-5.1.40-have_atomic_pthread_t.patch')
| -rw-r--r-- | recipes/mysql/mysql-5.1.40-have_atomic_pthread_t.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes/mysql/mysql-5.1.40-have_atomic_pthread_t.patch b/recipes/mysql/mysql-5.1.40-have_atomic_pthread_t.patch new file mode 100644 index 0000000000..f6401790d4 --- /dev/null +++ b/recipes/mysql/mysql-5.1.40-have_atomic_pthread_t.patch @@ -0,0 +1,37 @@ +diff -Naur mysql-5.1.40-old/storage/innodb_plugin/plug.in mysql-5.1.40-new/storage/innodb_plugin/plug.in +--- mysql-5.1.40-old/storage/innodb_plugin/plug.in 2009-10-06 10:50:23.000000000 -0700 ++++ mysql-5.1.40-new/storage/innodb_plugin/plug.in 2009-10-21 16:52:45.000000000 -0700 +@@ -63,8 +63,9 @@ + ;; + esac + AC_SUBST(INNODB_DYNAMIC_CFLAGS) +- AC_MSG_CHECKING(whether pthread_t can be used by GCC atomic builtins) +- AC_TRY_RUN( ++ AC_CACHE_CHECK([whether pthread_t can be used by GCC atomic builtins], ++ [ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T], ++ [AC_TRY_RUN( + [ + #include <pthread.h> + #include <string.h> +@@ -84,14 +85,18 @@ + } + ], + [ +- AC_DEFINE([HAVE_ATOMIC_PTHREAD_T], [1], +- [pthread_t can be used by GCC atomic builtins]) + AC_MSG_RESULT(yes) ++ ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T=yes + ], + [ + AC_MSG_RESULT(no) ++ ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T=no + ] +- ) ++ )]) ++ if test "x$ac_cv_have_decl_HAVE_ATOMIC_PTHREAD"= "xyes" ; then ++ AC_DEFINE([HAVE_ATOMIC_PTHREAD_T], [1], ++ [pthread_t can be used by GCC atomic builtins]) ++ fi + + # Try using solaris atomics on SunOS if GCC atomics are not available + AC_CHECK_DECLS( |
