Index: sys/oss/gstosssink.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/sys/oss/gstosssink.c,v
retrieving revision 1.84
diff -u -r1.84 gstosssink.c
--- sys/oss/gstosssink.c	5 Feb 2004 00:18:24 -0000	1.84
+++ sys/oss/gstosssink.c	27 Feb 2004 22:56:29 -0000
@@ -265,7 +265,10 @@
   if (GST_OSSELEMENT (osssink)->fd == -1)
     return 0;
 
-  if (ioctl (GST_OSSELEMENT (osssink)->fd, SNDCTL_DSP_GETODELAY, &delay) < 0) {
+#ifdef SNDCTL_DSP_GETODELAY
+  if (ioctl (GST_OSSELEMENT (osssink)->fd, SNDCTL_DSP_GETODELAY, &delay) < 0)
+#endif
+  {
     audio_buf_info info;
     if (ioctl (GST_OSSELEMENT (osssink)->fd, SNDCTL_DSP_GETOSPACE, &info) < 0) {
       delay = 0;
@@ -337,7 +340,7 @@
 
     switch (GST_EVENT_TYPE (event)) {
       case GST_EVENT_EOS:
-        ioctl (GST_OSSELEMENT (osssink)->fd, SNDCTL_DSP_SYNC);
+        ioctl (GST_OSSELEMENT (osssink)->fd, SNDCTL_DSP_SYNC, 0);
 	gst_audio_clock_set_active (GST_AUDIO_CLOCK (osssink->provided_clock), FALSE);
 	gst_pad_event_default (pad, event);
         return;
