I recently download mysql-3.23.51 and compiled it on a solaris 9 (sparc)
system using gcc-3.1. I ran into a couple of minor compile errors which
were easily fixed by a couple of type casts.. so far, it seems like the
casts are fine.... here are the diffs....
--- sql/mysqld.cc.orig Wed Jul 17 11:16:16 2002
+++ sql/mysqld.cc Wed Jul 17 11:53:27 2002
@@ -2391,7 +2391,7 @@
{
size_socket length=sizeof(struct sockaddr_in);
new_sock = accept(sock, my_reinterpret_cast(struct sockaddr *)
(&cAddr),
- &length);
+ (socklen_t *)&length);
if (new_sock != INVALID_SOCKET ||
(socket_errno != SOCKET_EINTR && socket_errno != SOCKET_EAGAIN))
break;
@@ -2457,7 +2457,7 @@
size_socket dummyLen;
struct sockaddr dummy;
dummyLen = sizeof(struct sockaddr);
- if (getsockname(new_sock,&dummy, &dummyLen) < 0)
+ if (getsockname(new_sock,&dummy, (socklen_t *)&dummyLen) < 0)
{
sql_perror("Error on new connection socket");
(void) shutdown(new_sock,2);
--- sql/mini_client.cc.orig Wed Jul 17 11:49:19 2002
+++ sql/mini_client.cc Wed Jul 17 11:53:54 2002
@@ -315,7 +315,7 @@
*/
s_err=0;
- if (getsockopt(s, SOL_SOCKET, SO_ERROR, (char*) &s_err, &s_err_size)
!= 0)
+ if (getsockopt(s, SOL_SOCKET, SO_ERROR, (char*) &s_err, (socklen_t
*)&s_err_size) != 0)
return(-1);
if (s_err)
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php