[Android] fix android-7 link (add timezone symbol)

Thomas Guillem git at videolan.org
Wed Feb 11 10:39:42 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Feb 11 09:29:55 2015 +0100| [9bc02df7def54466baddd5c627868b61e66c96f7] | committer: Thomas Guillem

fix android-7 link (add timezone symbol)

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9bc02df7def54466baddd5c627868b61e66c96f7
---

 libvlc/jni/Android.mk         |    1 +
 libvlc/jni/compat/localtime.c |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/libvlc/jni/Android.mk b/libvlc/jni/Android.mk
index 4134bb7..04ca809 100644
--- a/libvlc/jni/Android.mk
+++ b/libvlc/jni/Android.mk
@@ -14,6 +14,7 @@ ifneq ($(APP_PLATFORM),android-21)
 # compat functions not needed after android-21
 LOCAL_SRC_FILES += compat/pthread-condattr.c compat/pthread-rwlocks.c
 LOCAL_SRC_FILES += compat/pthread-once.c compat/eventfd.c compat/sem.c compat/pipe2.c
+LOCAL_SRC_FILES += compat/localtime.c
 endif
 LOCAL_SRC_FILES += compat/wchar/wcpcpy.c
 LOCAL_SRC_FILES += compat/wchar/wcpncpy.c
diff --git a/libvlc/jni/compat/localtime.c b/libvlc/jni/compat/localtime.c
new file mode 100644
index 0000000..430bfd0
--- /dev/null
+++ b/libvlc/jni/compat/localtime.c
@@ -0,0 +1,2 @@
+// android-7 libc doesn't have timezone
+long timezone = 0;



More information about the Android mailing list