Michael G Schwern wrote:
You can get these from .ph files which constants in C header files into
something Perl can get at. See h2ph which generates them.
These are rarely installed, so are not an appropriate dependency for
something intended for wide distribution.
Are you sure you can't the includes get them from Fcntl.pm or POSIX.pm?
Quite. I need offsets into struct flock, as I am trying to do an F_GETLK.
Otherwise the simplest thing to do is use ExtUtils::CBuilder to do the
compilation in your Makefile.PL rather than try to get MakeMaker do it.
As a kludge-around, I was thinking of using the PL_FILES functionality
to have a template module .PL compile the filter and run it on the
template to generate the module .pm file. I'll see if
ExtUtils::CBuilder suits. Not that such a kludge will correctly track
dependencies.