From: "Ara.T.Howard" Date: 2004-06-22T23:43:12+09:00 Subject: Re: ext portability question On Tue, 22 Jun 2004 nobu.nokada@softhome.net wrote: > Hi, > > At Tue, 22 Jun 2004 13:13:13 +0900, > Ara.T.Howard wrote in [ruby-talk:104311]: >> i've got a little statfs ext which works fine. the man page, however, claim >> subtly different struct statfs layouts for different *nixes. what is the >> preferred method for dealing with this? the struct is exposed to ruby via a >> wrapped struct so the layout actual cannot be abstracted. right now i am >> considering: > > $ ruby18 -v -rmkmf -e 'have_struct_member("struct statfs", "f_blocks", "sys/statfs.h")' > ruby 1.8.2 (2004-06-19) [i686-linux] > checking for struct statfs.f_blocks... yes > > -- > Nobu Nakada never knew about that one - guess i need to read mkmf! thanks. -a -- =============================================================================== | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov | PHONE :: 303.497.6469 | A flower falls, even though we love it; and a weed grows, even though we do | not love it. --Dogen ===============================================================================