summaryrefslogtreecommitdiff
path: root/sys/dev/sr/if_sr_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sr/if_sr_pci.c')
-rw-r--r--sys/dev/sr/if_sr_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sr/if_sr_pci.c b/sys/dev/sr/if_sr_pci.c
index 04d0db82c418..50ddb7fcb799 100644
--- a/sys/dev/sr/if_sr_pci.c
+++ b/sys/dev/sr/if_sr_pci.c
@@ -30,6 +30,10 @@
* $FreeBSD$
*/
+#ifndef COMPAT_OLDPCI
+#error "The sr device requires the old pci compatibility shims"
+#endif
+
#include "sr.h"
#include <sys/param.h>