Re: bcc dpmi ver1.2.0

R.L. Horn
2004-06-13T21:47:10Z

On Sun, 13 Jun 2004, Bart Oldeman wrote:

> sys/pci.h should be fine and non-controversial though.

The <sys/pci.h> for glibc 2.2.5 does nothing but include <linux/pci.h>.
Version 2.3 might be different, but I'm still screwing up the courage to
upgrade (it requires gcc 3, which is going to be a major PIA for me).

> The problem is that this sanitized copy wasn't clean enough.

I wondered about that, since I didn't get the usual "don't include kernel
headers" warning.

> You need to remove the #include <linux/mod_devicetable.h> from
> /usr/include/linux/pci.h.

I stuck an "#ifdef __KERNEL__" around it which seems to have done the
trick. Of course, now when an upgrade patch eventually fails, I'll have
to somehow remember what I've done. :-)

> I don't know about other distro's but Fedora doesn't seem to have
> problems with pci.h,

I don't run a distribution kernel, and the developers haven't fixed it as
of 2.6.6 (whenever I gripe about header bugs I get a pro forma response
about not using kernel headers in applications).

If it's not fixed in 2.6.7 I'll file a bugzilla report.