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 *.


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:
unknown
2000-12-21 11:54:08 +02:00
parent 27336dfe8f
commit 33cc250f67
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;