summaryrefslogtreecommitdiff
path: root/audio/mpmf20/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mpmf20/files/patch-ab')
-rw-r--r--audio/mpmf20/files/patch-ab43
1 files changed, 0 insertions, 43 deletions
diff --git a/audio/mpmf20/files/patch-ab b/audio/mpmf20/files/patch-ab
deleted file mode 100644
index 8a6ff737e0b6..000000000000
--- a/audio/mpmf20/files/patch-ab
+++ /dev/null
@@ -1,43 +0,0 @@
---- mpmf20.cpp.orig Mon Apr 12 08:49:40 1999
-+++ mpmf20.cpp Fri Feb 18 10:55:01 2000
-@@ -23,6 +23,24 @@
- #define DELETEARRAY delete[]
- #define STRICMP stricmp
-
-+#elif defined(__FreeBSD__)
-+ // FreeBSD g++
-+ #include <fcntl.h>
-+ #include <unistd.h>
-+ #include <machine/cpufunc.h>
-+ #if defined(__alpha__)
-+ #include <sys/types.h>
-+ extern "C" {
-+ u_int8_t inb(u_int32_t);
-+ void outb(u_int32_t, u_int8_t);
-+ }
-+ #endif
-+ #define OUTPORT(p,v) outb( (p), (v) )
-+ #define INPORT(p) inb( p )
-+ #define CLOCK_SECOND CLOCKS_PER_SEC
-+ #define DELETEARRAY delete[]
-+ #define STRICMP strcasecmp
-+
- #elif defined(__linux__)
- // linux g++
- #include <unistd.h>
-@@ -237,6 +255,15 @@
- // init error
- m_szError[ 0 ] = 0;
- m_iIDError = CMPMF20_ERROR_NONE;
-+
-+ // if FreeBSD
-+ #if defined(__FreeBSD__)
-+ // request access to required ports
-+ if (open("/dev/io", O_RDONLY) < 0) {
-+ LogError( CMPMF20_ERROR_IOPRERM, "open(\"/dev/io\") failed, reason '%s'", SZERROR );
-+ return FALSE;
-+ }
-+ #endif
-
- // if linux
- #if defined(__linux__)