Hi,

At Wed, 19 Jul 2006 04:27:00 +0900,
James F. Hranicky wrote in [ruby-core:08257]:
> > > +if have_library("c", "getpeerucred")
> > > +  $defs << "-DHAVE_GETPEERUCRED "
> > > +else
> > > +   puts "no getpeerucred"
> > > +end
> >
> > have_library will append that macro automatically, if
> > succeeded.
> 
> It didn't work for me, but I may have done something wrong. If this
> gets committed whoever does so is free to clean up any part of it.

The wrong point is using have_library in order to check if the
function is available, not the library.  It is not for that
purpose.  Use have_func instead.

  have_func("getpeerucred")

-- 
Nobu Nakada