1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

portability fix: use SOCKET_SIZE_TYPE in the handlersocket plugin

This commit is contained in:
Sergei Golubchik
2011-09-24 14:45:49 +02:00
parent 14c767ca48
commit 5c4d7c6625
4 changed files with 7 additions and 4 deletions

View File

@ -19,7 +19,7 @@ namespace dena {
struct socket_args {
sockaddr_storage addr;
socklen_t addrlen;
size_socket addrlen;
int family;
int socktype;
int protocol;
@ -43,7 +43,7 @@ void ignore_sigpipe();
int socket_bind(auto_file& fd, const socket_args& args, std::string& err_r);
int socket_connect(auto_file& fd, const socket_args& args, std::string& err_r);
int socket_accept(int listen_fd, auto_file& fd, const socket_args& args,
sockaddr_storage& addr_r, socklen_t& addrlen_r, std::string& err_r);
sockaddr_storage& addr_r, size_socket& addrlen_r, std::string& err_r);
};