[Android] [PATCH 6/7] jni: Exclude ARM-only header

Edward Wang edward.c.wang at compdigitec.com
Mon Jul 23 05:56:23 CEST 2012


---
 vlc-android/jni/pthread-once.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/vlc-android/jni/pthread-once.c b/vlc-android/jni/pthread-once.c
index e256a10..9c2cffb 100644
--- a/vlc-android/jni/pthread-once.c
+++ b/vlc-android/jni/pthread-once.c
@@ -29,7 +29,10 @@
 #include <pthread.h>
 #include <unistd.h>
 
+#if defined(__arm__)
+/* The file only exists for ARM, for now */
 #include <machine/cpu-features.h>
+#endif
 
 /* Adapted from bionic_atomic_inline.h */
 static inline void ANDROID_MEMBAR_FULL(void) {
-- 
1.7.5.4



More information about the Android mailing list