Bug 693283 - cannot detect endian of Android x86 on libsydney. r=kinetik
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Fri, 14 Oct 2011 11:27:18 +0900
changeset 78723 4d615b5d42d80c0bc978cec95a20be0efdea83a4
parent 78722 411c5d481dc15a1dfefa4b3ab01bca95d7a74922
child 78724 d2a037d0354d354b2d683518ce5c6c297d1b7af8
push id21326
push userbmo@edmorley.co.uk
push dateFri, 14 Oct 2011 10:00:06 +0000
treeherdermozilla-central@ca73f057dab7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs693283
milestone10.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 693283 - cannot detect endian of Android x86 on libsydney. r=kinetik
media/libsydneyaudio/include/sydney_audio.h
--- a/media/libsydneyaudio/include/sydney_audio.h
+++ b/media/libsydneyaudio/include/sydney_audio.h
@@ -43,17 +43,17 @@ async-signal safe.
   
 - It is assumed that duplex streams have a single clock (synchronised)
 */
 
 #include <sys/types.h>
 #if !defined (WIN32)
 #include <sys/param.h>
 #include <inttypes.h>
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(ANDROID)
 #include <sys/endian.h>
 #endif
 #else
 #include <stddef.h>
 #endif
 
 /* Detect byte order, based on sys/param.h */
 #undef SA_LITTLE_ENDIAN