In the message of [ruby-talk:02492] Re: Ruby 1.4.4 warning.
on 2000/4/17 15:48:16 matz / netlab.co.jp (Yukihiro Matsumoto) wrote:
>That's because definition of socklen_t is different.
>Here's the patch. I hope socklen_t is available on all platforms.
The socklen_t definition doesn't exist on BeOS 5, mswin32,
Solaris 2.6, etc. So, the current CVS version (2000-05-01)
cannot compile on these platforms.
How about this patch ?
--- ext/socket/extconf.rb.dist Fri Apr 14 23:35:45 2000
+++ ext/socket/extconf.rb Tue May 2 21:42:30 2000
@@ -294,2 +294,18 @@ end
+if !try_link(<<EOF)
+#include <sys/types.h>
+#include <netdb.h>
+#include <string.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+int
+main()
+{
+ socklen_t len;
+ return 0;
+}
+EOF
+ $CFLAGS="-Dsocklen_t=int "+$CFLAGS
+end
+
have_header("sys/un.h")
--
Katsuyuki Komatsu <komatsu / sarion.co.jp>