public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in kde-base/kdemultimedia/files: kdemultimedia-kioslaves-3.5.8-freebsd.patch
@ 2007-11-03 20:10 Wulf Krueger (philantrop)
  0 siblings, 0 replies; only message in thread
From: Wulf Krueger (philantrop) @ 2007-11-03 20:10 UTC (permalink / raw
  To: gentoo-commits

philantrop    07/11/03 20:10:21

  Added:                kdemultimedia-kioslaves-3.5.8-freebsd.patch
  Log:
  Added a patch for BSD compatibility.
  (Portage version: 2.1.3.16)

Revision  Changes    Path
1.1                  kde-base/kdemultimedia/files/kdemultimedia-kioslaves-3.5.8-freebsd.patch

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
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

Index: kdemultimedia-kioslaves-3.5.8-freebsd.patch
===================================================================
--- 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



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-03 20:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-03 20:10 [gentoo-commits] gentoo-x86 commit in kde-base/kdemultimedia/files: kdemultimedia-kioslaves-3.5.8-freebsd.patch Wulf Krueger (philantrop)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox