It looks to me like the bug is in the include files... ie. everything in linux/ that is intended to be exposed to user programs should be in sys/ as well, especially if it is "like" sys/ headers on other systems (which presumably this one is, if the autoconf test actually leads to the package working...)