[libdvdnav-devel] Support Android

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


libdvdread | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun  5 20:28:14 2014 +0200| [59332a29770e0bbc4a8b02dfb0b9304fb50551a4] | committer: Jean-Baptiste Kempf

Support Android

I will not comment more on the stupidity of bionic...

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=59332a29770e0bbc4a8b02dfb0b9304fb50551a4
---

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

diff --git a/src/dvd_input.h b/src/dvd_input.h
index e473100..5f0fbf4 100644
--- a/src/dvd_input.h
+++ b/src/dvd_input.h
@@ -42,6 +42,13 @@ typedef struct dvd_input_s *dvd_input_t;
 #   define wstat _wstati64
 #endif
 
+#ifdef __ANDROID__
+# undef  lseek
+# define lseek lseek64
+# undef  off_t
+# define off_t off64_t
+#endif
+
 /**
  * Function pointers that will be filled in by the input implementation.
  * These functions provide the main API.



More information about the libdvdnav-devel mailing list