From 2c83614e4333f5be6c36db32efae90ddb78c27b1 Mon Sep 17 00:00:00 2001 From: Chris Piazza Date: Mon, 27 Sep 1999 17:51:11 +0000 Subject: import of mpmf20. This software is a command line utility used used for transfering audio files in the MP3 format to and from the portable MP3 player MPMan MP-F20. It enables you to upload (specifying the files with wildcards or from a textfile), download, delete, reorder already uploaded files and more on your MPMan MP-F20. PR: Markus Holmberg Submitted by: 13911 --- audio/mpmf20/files/patch-ab | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 audio/mpmf20/files/patch-ab (limited to 'audio/mpmf20/files/patch-ab') diff --git a/audio/mpmf20/files/patch-ab b/audio/mpmf20/files/patch-ab new file mode 100644 index 000000000000..d2b75d6c2022 --- /dev/null +++ b/audio/mpmf20/files/patch-ab @@ -0,0 +1,36 @@ +--- mpmf20.cpp.orig Wed Sep 22 22:55:50 1999 ++++ mpmf20.cpp Wed Sep 22 22:47:45 1999 +@@ -23,6 +23,17 @@ + #define DELETEARRAY delete[] + #define STRICMP stricmp + ++#elif defined(__FreeBSD__) ++ // FreeBSD g++ ++ #include ++ #include ++ #include ++ #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 +@@ -237,6 +248,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__) -- cgit v1.2.3