summaryrefslogtreecommitdiff
path: root/devel/libpciaccess/files/patch-src-common_init.c
blob: d8028b2a4c2c99a0d74528d23d70ca79bf3beeff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/common_init.c.orig	2008-10-11 18:31:00.000000000 +0000
+++ src/common_init.c	2009-03-29 20:10:52.000000000 +0000
@@ -70,7 +70,9 @@
 void
 pci_system_init_dev_mem(int fd)
 {
-#ifdef __OpenBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+    pci_system_freebsd_init_dev_mem(fd);
+#elif defined(__OpenBSD__)
     pci_system_openbsd_init_dev_mem(fd);
 #endif
 }