Hi,

In message "[ruby-talk:02491] Ruby 1.4.4 warning."
    on 00/04/17, schneik / us.ibm.com <schneik / us.ibm.com> writes:

|FWIW, these are the warnings I received with compiling Ruby 1.4.4 on AIX
|4.3.3 with the VAC compiler.
|
|Will this cause problems when compiling in 64 bit mode on 64 bit CPU
|architectures?

That's because definition of socklen_t is different.
Here's the patch.  I hope socklen_t is available on all platforms.

--- ext/socket/socket.c	2000/04/14 14:35:45	1.6.2.8
+++ ext/socket/socket.c	2000/04/17 06:46:39
@@ -261,3 +261,4 @@
 #if !defined(__BEOS__)
-    int level, option, len;
+    int level, option;
+    socklen_t len;
     char *buf;
@@ -285,3 +286,3 @@
     char buf[1024];
-    int len = sizeof buf;
+    socklen_t len = sizeof buf;
     OpenFile *fptr;
@@ -299,3 +300,3 @@
     char buf[1024];
-    int len = sizeof buf;
+    socklen_t len = sizeof buf;
     OpenFile *fptr;
@@ -379,5 +380,5 @@
     char buf[1024];
-    int fd, alen = sizeof buf;
+    socklen_t alen = sizeof buf;
     VALUE len, flg;
-    int flags;
+    int fd, flags;
 
@@ -962,3 +963,3 @@
     struct sockaddr *sockaddr;
-    int *len;
+    socklen_t *len;
 {
@@ -995,3 +996,3 @@
     struct sockaddr_storage from;
-    int fromlen;
+    socklen_t fromlen;
 
@@ -1067,3 +1068,3 @@
     struct sockaddr_storage addr;
-    int len = sizeof addr;
+    socklen_t len = sizeof addr;
 
@@ -1082,3 +1083,3 @@
     struct sockaddr_storage addr;
-    int len = sizeof addr;
+    socklen_t len = sizeof addr;
 
@@ -1241,3 +1242,3 @@
 	struct sockaddr_un addr;
-	int len = sizeof(addr);
+	socklen_t len = sizeof(addr);
 	if (getsockname(fileno(fptr->f), (struct sockaddr*)&addr, &len) < 0)
@@ -1271,3 +1272,3 @@
     struct sockaddr_un from;
-    int fromlen;
+    socklen_t fromlen;
 
@@ -1292,3 +1293,3 @@
     struct sockaddr_un addr;
-    int len = sizeof addr;
+    socklen_t len = sizeof addr;
 
@@ -1307,3 +1308,3 @@
     struct sockaddr_un addr;
-    int len = sizeof addr;
+    socklen_t len = sizeof addr;
 
@@ -1510,3 +1511,3 @@
     char buf[1024];
-    int len = sizeof buf;
+    socklen_t len = sizeof buf;