[Android] jni: Exclude ARM-only header

Edward Wang git at videolan.org
Mon Jul 23 16:28:11 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Jul 22 23:56:23 2012 -0400| [0ad3c24f6c1013bfc16a8572145c8b5378069e1b] | committer: Rafaël Carré

jni: Exclude ARM-only header

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=0ad3c24f6c1013bfc16a8572145c8b5378069e1b
---

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

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



More information about the Android mailing list