1
0
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 *.
This commit is contained in:
tim@cane.mysql.fi
2000-12-21 11:54:08 +02:00
parent 4656daa6e4
commit 9a29f1f7a5
4 changed files with 10 additions and 2 deletions

View File

@ -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;