Mercurial > pidgin
changeset 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 | f8eb5f120603 |
children | 16e8b83b10a2 |
files | src/sound.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;