Hi,

At Fri, 13 Apr 2007 00:24:25 +0900,
Berger, Daniel wrote in [ruby-core:10912]:
> The problem with this approach is that it requires that I know, in
> advance, which platforms support the waitid() function and which don't.
> What I would rather do is this:

What about:

  class << (conftest = Object.new)
    def message(*s); end
    public(*private_methods(true).grep(/^(append|have|find)_/))
  end

  if conftest.have_func('waitid')
>    def test_waitid
>       ...
>    end
> end

-- 
Nobu Nakada