summaryrefslogtreecommitdiff
path: root/databases/percona56-client/files/patch-vio_viosocket.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--databases/percona56-client/files/patch-vio_viosocket.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/percona56-client/files/patch-vio_viosocket.c b/databases/percona56-client/files/patch-vio_viosocket.c
new file mode 100644
index 000000000000..dee21830f520
--- /dev/null
+++ b/databases/percona56-client/files/patch-vio_viosocket.c
@@ -0,0 +1,13 @@
+--- vio/viosocket.c.orig 2015-07-08 07:38:39 UTC
++++ vio/viosocket.c
+@@ -33,6 +33,10 @@
+ static void (*before_io_wait)(void)= 0;
+ static void (*after_io_wait)(void)= 0;
+
++#ifdef __FreeBSD__
++#define s6_addr32 __u6_addr.__u6_addr32
++#endif
++
+ /* Wait callback macros (both performance schema and threadpool */
+ #define START_SOCKET_WAIT(locker, state_ptr, sock, which, timeout) \
+ do \