Mercurial > pidgin.yaz
diff src/sound.c @ 2467:cd81f1f2c896
[gaim-migrate @ 2480]
bmiller's solaris sound patch
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 09 Oct 2001 23:15:33 +0000 |
parents | 2927c2c26fe6 |
children | ad4a0b3f0032 |
line wrap: on
line diff
--- a/src/sound.c Tue Oct 09 22:20:46 2001 +0000 +++ b/src/sound.c Tue Oct 09 23:15:33 2001 +0000 @@ -82,7 +82,7 @@ { int fd; - fd = open("/dev/audio", O_WRONLY | O_EXCL); + fd = open("/dev/audio", O_WRONLY | O_EXCL | O_NDELAY); if (fd < 0) return; write(fd, data, size); @@ -106,7 +106,7 @@ read(fd, buf, info.st_size - 24); close(fd); - fd = open("/dev/audio", O_WRONLY | O_EXCL); + fd = open("/dev/audio", O_WRONLY | O_EXCL | O_NDELAY); if (fd < 0) { free(buf); return;