Created attachment 14520 [details] [review] Patch to make lib/libpciaccess/src/common_interface.c compile on Mac OS X On Mac OS X (10.4.11) this file produces errors: common_interface.c: In function 'pci_device_cfg_read_u16': common_interface.c:473: warning: implicit declaration of function 'le16toh' common_interface.c:473: warning: nested extern declaration of 'le16toh' common_interface.c: In function 'pci_device_cfg_read_u32': common_interface.c:489: warning: implicit declaration of function 'le32toh' common_interface.c:489: warning: nested extern declaration of 'le32toh' common_interface.c: In function 'pci_device_cfg_write_u16': common_interface.c:555: warning: implicit declaration of function 'htole16' common_interface.c:555: warning: nested extern declaration of 'htole16' common_interface.c: In function 'pci_device_cfg_write_u32': common_interface.c:572: warning: implicit declaration of function 'htole32' common_interface.c:572: warning: nested extern declaration of 'htole32' make[2]: *** [common_interface.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 The attached patch makes it compile.
This isn't really a bug. libpciaccess should only be needed if you're building the xfree86 DDX, which isn't the case on OSX.
*** This bug has been marked as a duplicate of bug 12533 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.