summaryrefslogtreecommitdiff
path: root/package/libpciaccess/patches/patch-src_openbsd_pci_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-03-26 21:13:01 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-03-26 21:13:01 +0100
commitc48fde9c51983494910925bc4a13cf862f320d38 (patch)
tree1d024def3e43c4544e860a9fcab48707197a29a9 /package/libpciaccess/patches/patch-src_openbsd_pci_c
parent291a3cf5e1ba11aa9e548a756fe85c51d7b3217f (diff)
parent199f633fb1077c7ffedff161726e9229e7312152 (diff)
Merge branch 'master' of git+ssh://www.openadk.org/git/openadk
Diffstat (limited to 'package/libpciaccess/patches/patch-src_openbsd_pci_c')
-rw-r--r--package/libpciaccess/patches/patch-src_openbsd_pci_c26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/libpciaccess/patches/patch-src_openbsd_pci_c b/package/libpciaccess/patches/patch-src_openbsd_pci_c
new file mode 100644
index 000000000..0c7180b72
--- /dev/null
+++ b/package/libpciaccess/patches/patch-src_openbsd_pci_c
@@ -0,0 +1,26 @@
+--- libpciaccess-0.13.2.orig/src/openbsd_pci.c 2013-07-21 00:54:34.000000000 +0200
++++ libpciaccess-0.13.2/src/openbsd_pci.c 2014-03-24 13:26:10.484152334 +0100
+@@ -412,6 +412,7 @@ pci_device_openbsd_open_legacy_io(struct
+
+ ret->base = base;
+ ret->size = size;
++ ret->is_legacy = 1;
+ return ret;
+ #elif defined(__amd64__)
+ struct amd64_iopl_args ia;
+@@ -422,6 +423,7 @@ pci_device_openbsd_open_legacy_io(struct
+
+ ret->base = base;
+ ret->size = size;
++ ret->is_legacy = 1;
+ return ret;
+ #elif defined(PCI_MAGIC_IO_RANGE)
+ ret->memory = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
+@@ -431,6 +433,7 @@ pci_device_openbsd_open_legacy_io(struct
+
+ ret->base = base;
+ ret->size = size;
++ ret->is_legacy = 1;
+ return ret;
+ #else
+ return NULL;