summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-07-23 10:55:24 +0200
committerSergei Golubchik <serg@mariadb.org>2015-07-23 10:55:24 +0200
commit26f249f6db8098f161e19a08930d3c227281ea9a (patch)
treed58f47ae4865d67251f392063e798121e7e4edf6
parent0ae8bae98fd6e4c1074021a9340feaa69e0b361a (diff)
downloadmariadb-git-26f249f6db8098f161e19a08930d3c227281ea9a.tar.gz
compilation failures on Windows
-rw-r--r--include/mysql/psi/mysql_socket.h4
-rw-r--r--sql/wsrep_xid.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/include/mysql/psi/mysql_socket.h b/include/mysql/psi/mysql_socket.h
index 6f37e012f1f..33768b20fa8 100644
--- a/include/mysql/psi/mysql_socket.h
+++ b/include/mysql/psi/mysql_socket.h
@@ -1033,12 +1033,14 @@ inline_mysql_socket_accept
SOCK_CLOEXEC);
#else
socket_accept.fd= accept(socket_listen.fd, addr, &addr_length);
+#ifdef FD_CLOEXEC
flags= fcntl(socket_accept.fd, F_GETFD);
if (flags != -1) {
flags |= FD_CLOEXEC;
fcntl(socket_accept.fd, F_SETFD, flags);
}
#endif
+#endif
/* Instrumentation end */
if (locker != NULL)
@@ -1053,12 +1055,14 @@ inline_mysql_socket_accept
SOCK_CLOEXEC);
#else
socket_accept.fd= accept(socket_listen.fd, addr, &addr_length);
+#ifdef FD_CLOEXEC
flags= fcntl(socket_accept.fd, F_GETFD);
if (flags != -1) {
flags |= FD_CLOEXEC;
fcntl(socket_accept.fd, F_SETFD, flags);
}
#endif
+#endif
}
#ifdef HAVE_PSI_SOCKET_INTERFACE
diff --git a/sql/wsrep_xid.h b/sql/wsrep_xid.h
index 7bd2b063b48..c3cad0231d7 100644
--- a/sql/wsrep_xid.h
+++ b/sql/wsrep_xid.h
@@ -17,11 +17,12 @@
#define WSREP_XID_H
#include <my_config.h>
-#include "../wsrep/wsrep_api.h"
-#include "handler.h" // XID typedef
#ifdef WITH_WSREP
+#include "../wsrep/wsrep_api.h"
+#include "handler.h" // XID typedef
+
void wsrep_xid_init(xid_t*, const wsrep_uuid_t&, wsrep_seqno_t);
const wsrep_uuid_t* wsrep_xid_uuid(const XID&);
wsrep_seqno_t wsrep_xid_seqno(const XID&);