From: Paul Duncan Date: 2002-04-19T02:08:41+09:00 Subject: Re: Help wanted for statvfs extension --gblAvmLjk8yGG9If Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Paul Duncan (pabs@pablotron.org) wrote: [snipped] I'm having trouble this week ;) > Maybe something like this in the extconf.rb is the solution: >=20 > prefixes =3D ['', 'sys/'] > file =3D 'mntent.h' >=20 > prefixes.each { |p| > path =3D p + file > $CFLAGS << '-I' << p if have_header path and p.length > 0 > } This code should really read like this: base =3D '/usr/include' prefixes =3D ['', 'sys/'] file =3D 'mntent.h' prefixes.each { |p| path =3D base + '/' + p $CFLAGS << ' -I' << path if have_header path + file and p.length > 0 } Sorry about that :) --=20 Paul Duncan pabs in #gah (OPN IRC) http://www.pablotron.org/ OpenPGP Key ID: 0x82C29562 --gblAvmLjk8yGG9If Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8vv2WzdlT34LClWIRAgQAAKCVNvdCdSYXsQxvVtQw9ixDriSGSgCfWdkQ sLeVZvNEqLYjiFoSJg6/LDs= =2hfy -----END PGP SIGNATURE----- --gblAvmLjk8yGG9If--