1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/audio/mxv/files/patch-af
Michael Haro 8dac833ab2 update to 1.20
PR:		12624
Submitted by:	Jason Brazile <jason.brazile@netcetera.ch>
2000-02-14 21:03:05 +00:00

34 lines
862 B
Plaintext

*** old/diskfile.C Fri Apr 26 16:24:01 1996
--- diskfile.C Mon Jul 12 15:28:20 1999
***************
*** 50,56 ****
#if defined(linux)
extern "C" void setbuffer(FILE*, char*, int);
#else
! #if !defined( sgi ) && !defined( sun )
extern "C" int setbuffer(FILE*, char*, int);
#endif
#endif
--- 50,56 ----
#if defined(linux)
extern "C" void setbuffer(FILE*, char*, int);
#else
! #if !defined( sgi ) && !defined( sun ) && !defined( __FreeBSD__ )
extern "C" int setbuffer(FILE*, char*, int);
#endif
#endif
***************
*** 193,198 ****
--- 193,203 ----
rw &= ~01;
if (fp->_flags & _IO_NO_WRITES)
rw &= ~02;
+ #elif defined(__FreeBSD__)
+ if (fp->_flags & (__SRD|__SRW))
+ rw |= 01;
+ if (fp->_flags & (__SWR|__SRW|__SAPP))
+ rw |= 02;
#else
if (fp->_flag & (_IOREAD|_IORW))
rw |= 01;