summaryrefslogtreecommitdiff
path: root/audio/mxv/files/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--audio/mxv/files/patch-ae33
1 files changed, 33 insertions, 0 deletions
diff --git a/audio/mxv/files/patch-ae b/audio/mxv/files/patch-ae
new file mode 100644
index 000000000000..b2d7aeb502a2
--- /dev/null
+++ b/audio/mxv/files/patch-ae
@@ -0,0 +1,33 @@
+*** diskfile.C.orig Thu Apr 17 14:57:15 1997
+--- diskfile.C Thu Apr 17 15:06:28 1997
+***************
+*** 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;