diff options
author | cg <cg@FreeBSD.org> | 2001-06-23 17:36:51 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2001-06-23 17:36:51 +0000 |
commit | f4d67f070515aea9b806739c31a68a83a74664a3 (patch) | |
tree | f4eb53502dd9da5cf589d2fef965f6d9a6c863dc /sys/dev/sound/pcm/channel.c | |
parent | 601ee32495961d995a6be39f850536c07504bc40 (diff) | |
download | FreeBSD-src-f4d67f070515aea9b806739c31a68a83a74664a3.zip FreeBSD-src-f4d67f070515aea9b806739c31a68a83a74664a3.tar.gz |
add defines and ifdefs so this code will compile on 4.x
add spls so this code will work on 4.x
Diffstat (limited to 'sys/dev/sound/pcm/channel.c')
-rw-r--r-- | sys/dev/sound/pcm/channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c index 99aa391..9d9fa8f 100644 --- a/sys/dev/sound/pcm/channel.c +++ b/sys/dev/sound/pcm/channel.c @@ -105,7 +105,11 @@ chn_sleep(struct pcm_channel *c, char *str, int timeout) int ret; CHN_LOCKASSERT(c); +#ifdef USING_MUTEX ret = msleep(bs, c->lock, PRIBIO | PCATCH, str, timeout); +#else + ret = tsleep(bs, PRIBIO | PCATCH, str, timeout); +#endif return ret; } |