[libdvdnav-devel] Support Android bionic stupidity

Jean-Baptiste Kempf git at videolan.org
Thu Jun 5 20:53:56 CEST 2014


libdvdnav | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun  5 20:38:51 2014 +0200| [bf53a44b8403d2500c69a499a579c3b3cff33f38] | committer: Jean-Baptiste Kempf

Support Android bionic stupidity

> http://git.videolan.org/gitweb.cgi/libdvdnav.git/?a=commit;h=bf53a44b8403d2500c69a499a579c3b3cff33f38
---

 src/dvdnav_internal.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/dvdnav_internal.h b/src/dvdnav_internal.h
index 60157c5..7161202 100644
--- a/src/dvdnav_internal.h
+++ b/src/dvdnav_internal.h
@@ -59,6 +59,13 @@ static inline int _private_gettimeofday( struct timeval *tv, void *tz )
 
 #endif /* WIN32 */
 
+#ifdef __ANDROID__
+# undef  lseek
+# define lseek lseek64
+# undef  off_t
+# define off_t off64_t
+#endif
+
 /* where should libdvdnav write its messages (stdout/stderr) */
 #define MSG_OUT stderr
 



More information about the libdvdnav-devel mailing list