aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm/sound.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-09-15 08:21:14 +0000
committerBruce Evans <bde@FreeBSD.org>2002-09-15 08:21:14 +0000
commitab85003bf54049316f11f3c6a3dd3e3bf11b46ff (patch)
tree970e526a3f6cbfe31fe312b3935bb3cb2e51babd /sys/dev/sound/pcm/sound.h
parent528bebffb198af22a4599346990cf5454a17818a (diff)
downloadsrc-ab85003bf54049316f11f3c6a3dd3e3bf11b46ff.tar.gz
src-ab85003bf54049316f11f3c6a3dd3e3bf11b46ff.zip
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.
Notes
Notes: svn path=/head/; revision=103338
Diffstat (limited to 'sys/dev/sound/pcm/sound.h')
-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 7afa9485db48..5966e364cdae 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