$NetBSD: patch-bd,v 1.2 2006/12/08 09:24:26 abs Exp $ --- src/audio_out/audio_oss_out.c.orig 2006-07-16 17:18:09.000000000 +0100 +++ src/audio_out/audio_oss_out.c @@ -419,6 +419,7 @@ static int ao_oss_delay(ao_driver_t *thi } this->last_getoptr = info.bytes; break; +#ifndef __NetBSD__ case OSS_SYNC_GETODELAY: if (ioctl (this->audio_fd, SNDCTL_DSP_GETODELAY, &bytes_left)) { perror ("audio_oss_out: DSP_GETODELAY ioctl():"); @@ -429,6 +430,7 @@ static int ao_oss_delay(ao_driver_t *thi lprintf ("%d bytes left\n", bytes_left); break; +#endif } return bytes_left / this->bytes_per_frame; @@ -835,10 +837,13 @@ static ao_driver_t *open_plugin (audio_d * check if SNDCTL_DSP_GETODELAY works. if so, using it is preferred. */ +#ifndef __NetBSD__ if (ioctl(audio_fd, SNDCTL_DSP_GETODELAY, &info) != -1) { xprintf(class->xine, XINE_VERBOSITY_DEBUG, "audio_oss_out: using SNDCTL_DSP_GETODELAY\n"); this->sync_method = OSS_SYNC_GETODELAY; - } else if (ioctl(audio_fd, SNDCTL_DSP_GETOPTR, &info) != -1) { + } +#endif + if (ioctl(audio_fd, SNDCTL_DSP_GETOPTR, &info) != -1) { xprintf(class->xine, XINE_VERBOSITY_DEBUG, "audio_oss_out: using SNDCTL_DSP_GETOPTR\n"); this->sync_method = OSS_SYNC_GETOPTR; } else {