Skip to content

Commit 4f20655

Browse files
committed
Bug#27406775 BACKPORT BUG#26846549 TO 5.7 (post-fix)
Problem ======= The solaris11-sparc-64bit,community weekly build failed. Analysis ======== Compiler complains that function "calloc" must have a prototype on node_connection.h. Indeed, node_connection.h does not include stdlib.h as required to use calloc. This has been fixed somewhere in the development from 5.7 to 8.0 because the include is there on 8.0. The fact that it has been compiling is most likely accidental. Solution ======== Add #include <stdio.h> to node_connection.h. Reviewed-by: Alfranio Correia <[email protected]> Reviewed-by: Tiago Jorge <[email protected]> RB: 18853
1 parent 560104c commit 4f20655

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/node_connection.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#ifndef NODE_CONNECTION_H
1818
#define NODE_CONNECTION_H
1919

20+
#include <stdlib.h>
21+
2022
#ifdef XCOM_HAVE_OPENSSL
2123
#include "openssl/ssl.h"
2224
#endif

0 commit comments

Comments
 (0)