From: Katsuyuki Komatsu Date: 2000-05-02T23:16:14+09:00 Subject: [ruby-talk:02615] Re: Ruby 1.4.4 warning. 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(< +#include +#include +#include +#include +int +main() +{ + socklen_t len; + return 0; +} +EOF + $CFLAGS="-Dsocklen_t=int "+$CFLAGS +end + have_header("sys/un.h") -- Katsuyuki Komatsu