http://www.perlmonks.org?node_id=984043


in reply to h2xs problem handling nested include file(s)

First, run h2ph. It'll convert C header files to Perl header files. For eample, convert acl.h:
cd /usr/include h2ph sys/acl.h
Better yet, translate all the headers in one go:
h2ph *.h */*.h
Then run h2xs again.