mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Compatibility fix for BSDi.
BSDi uses size_t * for the optlen arg to getsockopt, while other Unixes use socklen_t *. acconfig.h: - compatibility fix for BSDi (getsockopt optlen type) configure.in: - compatibility fix for BSDi (getsockopt optlen type) libmysql/libmysql.c: - compatibility fix for BSDi (getsockopt optlen type) sql/mini_client.cc: - compatibility fix for BSDi (getsockopt optlen type)
This commit is contained in:
@ -125,7 +125,7 @@ static int connect2(my_socket s, const struct sockaddr *name, uint namelen,
|
||||
return connect(s, (struct sockaddr*) name, namelen);
|
||||
#else
|
||||
int flags, res, s_err;
|
||||
size_socket s_err_size = sizeof(uint);
|
||||
SOCKOPT_OPTLEN_TYPE s_err_size = sizeof(uint);
|
||||
fd_set sfds;
|
||||
struct timeval tv;
|
||||
time_t start_time, now_time;
|
||||
|
Reference in New Issue
Block a user