Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
5.5.48-galera
-
None
-
None
-
AIX, 5.3, 6.1
Description
make fails to due to undeclared identifier.
[ 59%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/mysql_async.c.o
|
"/data/prj/aixtools/mariadb/src/mariadb-5.5.48.0/sql-common/mysql_async.c", line 128.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
|
"/data/prj/aixtools/mariadb/src/mariadb-5.5.48.0/sql-common/mysql_async.c", line 156.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
|
make: 1254-004 The error code from the last command is 1.
|
The following at least permits the make to progress to the next issue (undefined symbols at link)
--- mariadb-5.5.48.0/sql-common/mysql_async.c 2016-02-10 06:07:26 +0000
|
+++ mariadb-5.5.48/sql-common/mysql_async.c 2016-03-26 20:55:22 +0000
|
@@ -29,7 +29,7 @@
|
#include "mysql_async.h"
|
|
|
-#ifdef __WIN__
|
+#if defined(__WIN__) || defined(_AIX)
|
/*
|
Windows does not support MSG_DONTWAIT for send()/recv(). So we need to ensure
|
that the socket is non-blocking at the start of every operation.
|
@@ -38,6 +38,9 @@
|
my_bool old_mode; \
|
if ((mysql)->net.vio) vio_blocking((mysql)->net.vio, FALSE, &old_mode); \
|
}
|
+#if defined(_AIX) && !defined(MSG_DONTWAIT)
|
+#define MSG_DONTWAIT MSG_NONBLOCK
|
+#endif
|
#else
|
#define WIN_SET_NONBLOCKING(mysql)
|
#endif
|