mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
compilation failures on Windows
This commit is contained in:
@@ -1033,11 +1033,13 @@ 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 */
|
||||
@@ -1053,11 +1055,13 @@ 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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user