summaryrefslogtreecommitdiff
path: root/package/mysql/patches/patch-include_my_global_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-29 14:21:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-29 14:21:49 +0100
commitdf666e5a4fcef3c7a8d7da5f3628672e2bdcc77b (patch)
tree72a48da1a3e7ae9ca0b60f0cedcb89b138160a85 /package/mysql/patches/patch-include_my_global_h
parent8dbadd582b22e1997cc82477e41d20e25fb604b1 (diff)
fix compile errors on OpenBSD host
update bluez package to latest upstream. disable aufs2-util on OpenBSD host.
Diffstat (limited to 'package/mysql/patches/patch-include_my_global_h')
-rw-r--r--package/mysql/patches/patch-include_my_global_h54
1 files changed, 54 insertions, 0 deletions
diff --git a/package/mysql/patches/patch-include_my_global_h b/package/mysql/patches/patch-include_my_global_h
new file mode 100644
index 000000000..2b262bbb4
--- /dev/null
+++ b/package/mysql/patches/patch-include_my_global_h
@@ -0,0 +1,54 @@
+--- mysql-5.1.41.orig/include/my_global.h Wed Nov 4 19:28:15 2009
++++ mysql-5.1.41/include/my_global.h Tue Dec 29 13:39:20 2009
+@@ -18,6 +18,8 @@
+ #ifndef _global_h
+ #define _global_h
+
++#include <sys/param.h>
++
+ /*
+ InnoDB depends on some MySQL internals which other plugins should not
+ need. This is because of InnoDB's foreign key support, "safe" binlog
+@@ -424,7 +426,7 @@ C_MODE_END
+ #ifdef HAVE_FLOAT_H
+ #include <float.h>
+ #endif
+-#ifdef HAVE_FENV_H
++#if defined(HAVE_FENV_H) && !defined(BSD)
+ #include <fenv.h> /* For fesetround() */
+ #endif
+
+@@ -454,15 +456,20 @@ C_MODE_END
+ #undef HAVE_ALLOCA
+ #undef HAVE_ALLOCA_H
+ #endif
+-#ifdef HAVE_ALLOCA_H
++#if defined(HAVE_ALLOCA_H) && !defined(BSD)
+ #include <alloca.h>
+ #endif
+
+ #include <errno.h> /* Recommended by debian */
+ /* We need the following to go around a problem with openssl on solaris */
++#ifdef BSD
++#include <pwd.h>
++#include <unistd.h>
++#else
+ #if defined(HAVE_CRYPT_H)
+ #include <crypt.h>
+ #endif
++#endif
+
+ /*
+ A lot of our programs uses asserts, so better to always include it
+@@ -879,9 +886,11 @@ typedef SOCKET_SIZE_TYPE size_socket;
+ #endif /* HAVE_FINITE */
+ #endif /* isfinite */
+
++/*
+ #ifndef HAVE_ISNAN
+ #define isnan(x) ((x) != (x))
+ #endif
++*/
+
+ #ifdef HAVE_ISINF
+ /* Check if C compiler is affected by GCC bug #39228 */