summaryrefslogtreecommitdiff
path: root/databases/mysql57-client/patches/patch-rapid_plugin_group__replication_libmysqlgcs_src_bindings_xcom_xcom_xcom__memory.c
blob: 550dc972bdff838ef4913b0b83900c37a257e8b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-rapid_plugin_group__replication_libmysqlgcs_src_bindings_xcom_xcom_xcom__memory.c,v 1.1 2017/03/16 15:46:22 maya Exp $

Workaround netbsd prototype of xdrproc_t being 2 arguments.

--- rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_memory.c.orig	2016-11-28 13:32:52.000000000 +0000
+++ rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/xcom_memory.c
@@ -43,7 +43,14 @@ my_xdr_free (xdrproc_t proc, char *objp)
     is the case). This will keep this code cross-platform
     and cross-version compatible.
   */
+#ifdef __NetBSD__
+  /* NetBSD doesn't have a variadic xdrproc_t...
+   * see https://bugzilla.redhat.com/show_bug.cgi?id=1128820#c24 
+   * for a similar problem */
+  (*proc) (&x, objp);
+#else
   (*proc) (&x, objp, 0);
+#endif
 }
 
 void xcom_xdr_free(xdrproc_t f, char *p)