components/sox/patches/7.sunaudio.c.patch
author Girish Moodalbail <Girish.Moodalbail@oracle.COM>
Wed, 29 Oct 2014 10:08:29 -0700
branchs11u2-sru
changeset 3438 40c3d53194f6
parent 239 f5dbfc736a65
permissions -rw-r--r--
19898528 PBR rule must not forward packets addressed to internal default gateway

--- sox-14.3.0/src/sunaudio.c	Wed Aug 19 16:15:20 2009
+++ sox-14.3.0/src/sunaudio.c.new	Wed Aug 19 16:24:29 2009
@@ -172,8 +172,11 @@
 #else
     ioctl(fileno(ft->fp), I_FLUSH, FLUSHR);
 #endif
+
+#if !defined sun
     /* Change to non-buffered I/O*/
     setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size);
+#endif
 
     return (SOX_SUCCESS);
 }
@@ -299,8 +302,10 @@
         lsx_fail_errno(ft,errno,"Unable to initialize encoding for /dev/audio");
         return(SOX_EOF);
     }
+#if !defined sun
     /* Change to non-buffered I/O */
     setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size);
+#endif
 
     return (SOX_SUCCESS);
 }