summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-01-01 14:29:00 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-01-01 14:29:00 +0000
commit2e83b76ba409c59168f6100dd716a59e47432842 (patch)
treefffbc61d36f567898cfdf7f81148d452632c2ab3 /sys
parent2b8ce46ed8b08a78b9bee9b4a46b007f4038cabe (diff)
If you want to use atomic ops, you need to #include the proper files instead
of relying upon other headers bringing it in for you.
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/scsiconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index daa6a33ed21..ef5cb8030ec 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.153 2010/01/01 06:30:27 dlg Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.154 2010/01/01 14:28:59 miod Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -60,6 +60,8 @@
#include <scsi/scsi_all.h>
#include <scsi/scsiconf.h>
+#include <machine/atomic.h>
+
#if NBIO > 0
#include <sys/ioctl.h>
#include <sys/scsiio.h>