sockaddr_storageのメンバ

e$B6bK$H?=$7$^$9!#e(B

AIXe$B$Ge(Bss_lene$B$,$J$$$H$$$o$l$Fe(Bsocket.soe$B$,$D$/$l$J$$$N$G$9$,!"e(B
e$B%a%s%P$rD4$Y$F$_$k$H!"e(Bss_familye$B$He(B__ss_lene$B$H$$$&AH$_9g$o$;$G$7$?!#e(B

e$B8=>ue(Bext/socket/extconf.rbe$B$G$O!"e(Bss_familye$B$He(Bss_lene$B$O!!F,$Ke(B
__ e$B$,e(B
e$BN>J}$D$$$F$$$k$+N>J}$D$$$F$$$J$$$+$H$$$&>u67$7$+BP1~$G$-$J$$$h$&$G$9!#e(B
AIX5.1e$B$G$ON>J}$K$D$$$F$$$?$N$G$9$,!"e(BAIX5.2e$B0J9_$Ge(Bss_familye$B$N$[$&$@$1e(B
__e$B$,$J$/$J$j$^$7$?!#e(B

e$B$=$3$G!"0J2<$N$h$&$KJL!9$NH=Dj$K$7$F$7$N$$$G$$^$7$?!#e(B
AIXe$B0J30$N%W%i%C%H%U%)!<%`$G1F6A$,$G$+$M$J$$JQ99$J$N$G!e(B
e$B?H$N2s$j$r$7$i$Y$?$H$3$m!$[$+$Ke(Bss_lene$B$,$"$k$N$r$
$D$1$?$N$Oe(BFreeBSD
7.2e$B$0$i$$$@$C$?$N$G$9$,!"e(B
e$B1F6A$O$J$5$=$&$G$7$?!#e(B

e$B$3$s$JFbMF$G%3%_%C%H$5$;$F$$$?$@$$$F$b$h$m$7$$$G$7$g$&$+!)e(B

Index: ext/socket/extconf.rb

ext/socket/extconf.rb (revision 25376)
+++ ext/socket/extconf.rb (working copy)
@@ -97,8 +97,10 @@

dougs fix, NOW add -Dss_family only if required!

doug = proc {have_struct_member(struct sockaddr_storage,
ss_family, headers)}
if (doug[] or

  • with_cppflags($CPPFLAGS + " -Dss_family=__ss_family
    -Dss_len=__ss_len", &doug))
  • with_cppflags($CPPFLAGS + " -Dss_family=__ss_family", &doug))
    $defs[-1] = -DHAVE_SOCKADDR_STORAGE
  • doug = proc {have_struct_member(struct sockaddr_storage,
    ss_len, headers)}
  • doug[] or with_cppflags($CPPFLAGS + " -Dss_len=__ss_len", &doug)
    end

if have_struct_member(struct sockaddr, sa_len, headers)

e$B$h$m$7$/$*4j$$$$$?$7$^$9!#e(B

e$B$&$A$Ne(B FreeBSD 8.0-RC1 amd64 e$B$G$bBg>fIW$G$7$?!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message Re: [ruby-dev:39499] sockaddr_storagee$B$N%a%s%Pe(B
on Sat, 17 Oct 2009 00:47:13 +0900, Yutaka K.
[email protected] writes:

|AIXe$B$Ge(Bss_lene$B$,$J$$$H$$$o$l$Fe(Bsocket.soe$B$,$D$/$l$J$$$N$G$9$,!e(B
|e$B%a%s%P$rD4$Y$F$$k$H!"e(Bss_familye$B$He(B__ss_lene$B$H$$$&AH$9g$o$;$G$7$?!#e(B
|
|e$B8=>ue(Bext/socket/extconf.rbe$B$G$O!"e(Bss_familye$B$He(Bss_lene$B$O!!F,$Ke(B __ e$B$,e(B
|e$BN>J}$D$$$F$$$k$+N>J}$D$$$F$$$J$$$+$H$$$&>u67$7$+BP1~$G$-$J$$$h$&$G$9!#e(B
|AIX5.1e$B$G$ON>J}$K$D$$$F$$$?$N$G$9$,!"e(BAIX5.2e$B0J9
$Ge(Bss_familye$B$N$[$&$@$1e(B
|__e$B$,$J$/$J$j$^$7$?!#e(B
|
|e$B$=$3$G!"0J2<$N$h$&$KJL!9$NH=Dj$K$7$F$7$N$$$G$
$^$7$?!#e(B
|AIXe$B0J30$N%W%i%C%H%U%)!<%`$G1F6A$,$G$+$M$J$$JQ99$J$N$G!e(B
|e$B?H$N2s$j$r$7$i$Y$?$H$3$m!$[$+$Ke(Bss_lene$B$,$$k$N$r$$D$1$?$N$Oe(BFreeBSD 7.2e$B$0$i$$$@$C$?$N$G$9$,!"e(B
|e$B1F6A$O$J$5$=$&$G$7$?!#e(B
|
|e$B$3$s$JFbMF$G%3%
%C%H$5$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