diff options
author | Wulf Krueger <philantrop@gentoo.org> | 2007-11-03 20:10:21 +0000 |
---|---|---|
committer | Wulf Krueger <philantrop@gentoo.org> | 2007-11-03 20:10:21 +0000 |
commit | 98fb1011cdb27b21d1e0b39f29ef47fd0cff5303 (patch) | |
tree | 53be66ec1ef6d9f812662f5c68c43fd7cdcf6b08 /kde-base/kdemultimedia/files | |
parent | Needs dtd 4.1.2 to build help files (diff) | |
download | gentoo-2-98fb1011cdb27b21d1e0b39f29ef47fd0cff5303.tar.gz gentoo-2-98fb1011cdb27b21d1e0b39f29ef47fd0cff5303.tar.bz2 gentoo-2-98fb1011cdb27b21d1e0b39f29ef47fd0cff5303.zip |
Added a patch for BSD compatibility.
(Portage version: 2.1.3.16)
Diffstat (limited to 'kde-base/kdemultimedia/files')
-rw-r--r-- | kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch b/kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch new file mode 100644 index 000000000000..be8a7d927eae --- /dev/null +++ b/kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch @@ -0,0 +1,27 @@ +--- kdemultimedia-kioslaves-3.5.8/kioslave/audiocd/plugins/lame/encoderlame.cpp.old 2007-10-21 10:16:12 -0600 ++++ kdemultimedia-kioslaves-3.5.8/kioslave/audiocd/plugins/lame/encoderlame.cpp 2007-10-21 09:50:00 -0600 +@@ -17,7 +17,11 @@ + */ + + #include <config.h> ++#ifdef HAVE_MACHINE_ENDIAN_H ++#include <machine/endian.h> ++#else + #include <endian.h> ++#endif + #include "encoderlame.h" + #include "encoderlameconfig.h" + #include "audiocd_lame_encoder.h" +@@ -221,6 +225,12 @@ + // -x bitswap + // -r raw/pcm + // -s 44.1 (because it is raw you have to specify this) ++#if !defined(__BYTE_ORDER) && defined(_BYTE_ORDER) ++#define __BYTE_ORDER _BYTE_ORDER ++#endif ++#if !defined(__LITTLE_ENDIAN) && defined(_LITTLE_ENDIAN) ++#define __LITTLE_ENDIAN _LITTLE_ENDIAN ++#endif + #if __BYTE_ORDER == __LITTLE_ENDIAN + *(d->currentEncodeProcess) << "lame" << "--verbose" << "-x" << "-r" << "-s" << "44.1"; + #else |