diff options
author | Chris Piazza <cpiazza@FreeBSD.org> | 1999-09-27 17:51:11 +0000 |
---|---|---|
committer | Chris Piazza <cpiazza@FreeBSD.org> | 1999-09-27 17:51:11 +0000 |
commit | 2c83614e4333f5be6c36db32efae90ddb78c27b1 (patch) | |
tree | 8e1e3cbd56376008800a7c3e344a1f315a232ddd /audio/mpmf20/files/patch-ab | |
parent | Update to version 0.5.2 (diff) |
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 <saska@acc.umu.se>
Submitted by: 13911
Notes
Notes:
svn path=/head/; revision=22022
Diffstat (limited to 'audio/mpmf20/files/patch-ab')
-rw-r--r-- | audio/mpmf20/files/patch-ab | 36 |
1 files changed, 36 insertions, 0 deletions
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 <fcntl.h> ++ #include <unistd.h> ++ #include <machine/cpufunc.h> ++ #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 +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__) |