1
0

patch-src_freebsd_pci_c 565 B

123456789101112131415161718
  1. --- libpciaccess-0.13.2.orig/src/freebsd_pci.c 2013-07-21 00:54:34.000000000 +0200
  2. +++ libpciaccess-0.13.2/src/freebsd_pci.c 2014-03-24 13:26:10.476152263 +0100
  3. @@ -579,6 +579,7 @@ pci_device_freebsd_open_legacy_io(struct
  4. ret->base = base;
  5. ret->size = size;
  6. + ret->is_legacy = 1;
  7. return ret;
  8. #elif defined(PCI_MAGIC_IO_RANGE)
  9. ret->memory = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
  10. @@ -588,6 +589,7 @@ pci_device_freebsd_open_legacy_io(struct
  11. ret->base = base;
  12. ret->size = size;
  13. + ret->is_legacy = 1;
  14. return ret;
  15. #else
  16. return NULL;