summaryrefslogtreecommitdiff
path: root/packaging/rpm-oel/my_config.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-02-25 16:04:35 +0100
committerSergei Golubchik <sergii@pisem.net>2014-02-25 16:04:35 +0100
commit0b9a0a3517ca2b75655f3af5c372cf333d3d5fe2 (patch)
tree5c67457ff8abbb89b203a7f55cda776b738c385b /packaging/rpm-oel/my_config.h
parent6324c36bd703a0f55dcd49dd721af262f73cf7aa (diff)
parentff2e82f4a175b7b023cd167b2fa6e6fcd1bd192e (diff)
downloadmariadb-git-0b9a0a3517ca2b75655f3af5c372cf333d3d5fe2.tar.gz
5.5 merge
Diffstat (limited to 'packaging/rpm-oel/my_config.h')
-rw-r--r--packaging/rpm-oel/my_config.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/packaging/rpm-oel/my_config.h b/packaging/rpm-oel/my_config.h
new file mode 100644
index 00000000000..75dc5e1d754
--- /dev/null
+++ b/packaging/rpm-oel/my_config.h
@@ -0,0 +1,30 @@
+/*
+ * Fedora supports multi arch: having 32 and 64 versions of MySQL
+ * installed at the same time. my_config.h will differ due arch
+ * dependent defs creating a file conflict. We move arch specific
+ * headers to arch specific file names and include the correct arch
+ * specific file by installing this generic file.
+ *
+ */
+
+#if defined(__i386__)
+#include "my_config_i386.h"
+#elif defined(__ia64__)
+#include "my_config_ia64.h"
+#elif defined(__powerpc__)
+#include "my_config_ppc.h"
+#elif defined(__powerpc64__)
+#include "my_config_ppc64.h"
+#elif defined(__s390x__)
+#include "my_config_s390x.h"
+#elif defined(__s390__)
+#include "my_config_s390.h"
+#elif defined(__sparc__) && defined(__arch64__)
+#include "my_config_sparc64.h"
+#elif defined(__sparc__)
+#include "my_config_sparc.h"
+#elif defined(__x86_64__)
+#include "my_config_x86_64.h"
+#else
+#error "This MySQL devel package does not work your architecture?"
+#endif