diff options
Diffstat (limited to 'meta-oe/recipes-support/mysql/mysql5/plug.in.patch')
-rw-r--r-- | meta-oe/recipes-support/mysql/mysql5/plug.in.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mysql/mysql5/plug.in.patch b/meta-oe/recipes-support/mysql/mysql5/plug.in.patch new file mode 100644 index 000000000..70c39fa7a --- /dev/null +++ b/meta-oe/recipes-support/mysql/mysql5/plug.in.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | Index: mysql-5.1.40/storage/innodb_plugin/plug.in | ||
2 | =================================================================== | ||
3 | --- mysql-5.1.40.orig/storage/innodb_plugin/plug.in | ||
4 | +++ mysql-5.1.40/storage/innodb_plugin/plug.in | ||
5 | @@ -63,35 +63,6 @@ MYSQL_PLUGIN_ACTIONS(innodb_plugin, [ | ||
6 | ;; | ||
7 | esac | ||
8 | AC_SUBST(INNODB_DYNAMIC_CFLAGS) | ||
9 | - AC_MSG_CHECKING(whether pthread_t can be used by GCC atomic builtins) | ||
10 | - AC_TRY_RUN( | ||
11 | - [ | ||
12 | - #include <pthread.h> | ||
13 | - #include <string.h> | ||
14 | - | ||
15 | - int main(int argc, char** argv) { | ||
16 | - pthread_t x1; | ||
17 | - pthread_t x2; | ||
18 | - pthread_t x3; | ||
19 | - | ||
20 | - memset(&x1, 0x0, sizeof(x1)); | ||
21 | - memset(&x2, 0x0, sizeof(x2)); | ||
22 | - memset(&x3, 0x0, sizeof(x3)); | ||
23 | - | ||
24 | - __sync_bool_compare_and_swap(&x1, x2, x3); | ||
25 | - | ||
26 | - return(0); | ||
27 | - } | ||
28 | - ], | ||
29 | - [ | ||
30 | - AC_DEFINE([HAVE_ATOMIC_PTHREAD_T], [1], | ||
31 | - [pthread_t can be used by GCC atomic builtins]) | ||
32 | - AC_MSG_RESULT(yes) | ||
33 | - ], | ||
34 | - [ | ||
35 | - AC_MSG_RESULT(no) | ||
36 | - ] | ||
37 | - ) | ||
38 | |||
39 | # Try using solaris atomics on SunOS if GCC atomics are not available | ||
40 | AC_CHECK_DECLS( | ||