Gentoo Archives: gentoo-commits

From: "Wulf Krueger (philantrop)" <philantrop@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdemultimedia/files: kdemultimedia-kioslaves-3.5.8-freebsd.patch
Date: Sat, 03 Nov 2007 20:10:27
Message-Id: E1IoPK1-0001FJ-Uf@stork.gentoo.org
1 philantrop 07/11/03 20:10:21
2
3 Added: kdemultimedia-kioslaves-3.5.8-freebsd.patch
4 Log:
5 Added a patch for BSD compatibility.
6 (Portage version: 2.1.3.16)
7
8 Revision Changes Path
9 1.1 kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch?rev=1.1&content-type=text/plain
13
14 Index: kdemultimedia-kioslaves-3.5.8-freebsd.patch
15 ===================================================================
16 --- kdemultimedia-kioslaves-3.5.8/kioslave/audiocd/plugins/lame/encoderlame.cpp.old 2007-10-21 10:16:12 -0600
17 +++ kdemultimedia-kioslaves-3.5.8/kioslave/audiocd/plugins/lame/encoderlame.cpp 2007-10-21 09:50:00 -0600
18 @@ -17,7 +17,11 @@
19 */
20
21 #include <config.h>
22 +#ifdef HAVE_MACHINE_ENDIAN_H
23 +#include <machine/endian.h>
24 +#else
25 #include <endian.h>
26 +#endif
27 #include "encoderlame.h"
28 #include "encoderlameconfig.h"
29 #include "audiocd_lame_encoder.h"
30 @@ -221,6 +225,12 @@
31 // -x bitswap
32 // -r raw/pcm
33 // -s 44.1 (because it is raw you have to specify this)
34 +#if !defined(__BYTE_ORDER) && defined(_BYTE_ORDER)
35 +#define __BYTE_ORDER _BYTE_ORDER
36 +#endif
37 +#if !defined(__LITTLE_ENDIAN) && defined(_LITTLE_ENDIAN)
38 +#define __LITTLE_ENDIAN _LITTLE_ENDIAN
39 +#endif
40 #if __BYTE_ORDER == __LITTLE_ENDIAN
41 *(d->currentEncodeProcess) << "lame" << "--verbose" << "-x" << "-r" << "-s" << "44.1";
42 #else
43
44
45
46 --
47 gentoo-commits@g.o mailing list