summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-09-15 08:21:14 +0000
committerbde <bde@FreeBSD.org>2002-09-15 08:21:14 +0000
commit958421a4ec0bd3d96fc5f0a60c518b412993ca2d (patch)
tree970e526a3f6cbfe31fe312b3935bb3cb2e51babd /sys
parentb2a34e6f87ef6a0d5c913fb956b29f44f72cb198 (diff)
downloadFreeBSD-src-958421a4ec0bd3d96fc5f0a60c518b412993ca2d.zip
FreeBSD-src-958421a4ec0bd3d96fc5f0a60c518b412993ca2d.tar.gz
Fixed breakage from removing the used include of <sys/buf.h> in the
previous commit: Include <sys/mutex.h> and its prerequisite <sys/lock.h> instead of depending on namespace pollution in <sys/buf.h>. Only do this in the __FreeBSD_version > 500000 case although the __FreeBSD_version < 500000 case has already rotted.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/pcm/sound.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h
index 7afa948..5966e36 100644
--- a/sys/dev/sound/pcm/sound.h
+++ b/sys/dev/sound/pcm/sound.h
@@ -73,6 +73,9 @@
#undef USING_DEVFS
#if __FreeBSD_version > 500000
+#include <sys/lock.h>
+#include <sys/mutex.h>
+
#define USING_MUTEX
#define USING_DEVFS
#endif
OpenPOWER on IntegriCloud