Fix build on Solaris: pass the third parameter to pa_cloexec_open.

This commit is contained in:
Diego Elio 'Flameeyes' Pettenò 2009-11-20 21:22:24 +01:00
parent 70ba21e78a
commit 71ebbfb6ef

View file

@ -327,7 +327,7 @@ static int open_audio_device(struct userdata *u, pa_sample_spec *ss) {
pa_assert(u);
pa_assert(ss);
if ((u->fd = pa_open_cloexec(u->device_name, u->mode | O_NONBLOCK)) < 0) {
if ((u->fd = pa_open_cloexec(u->device_name, u->mode | O_NONBLOCK, 0)) < 0) {
pa_log_warn("open %s failed (%s)", u->device_name, pa_cstrerror(errno));
return -1;
}