[libbluray-devel] Fix lseek/off_t in Android
Petri Hintukainen
git at videolan.org
Tue Nov 24 16:32:27 CET 2015
libudfread | branch: master | Petri Hintukainen <phintuka at gmail.com> | Tue Nov 24 17:31:51 2015 +0200| [9e1e9865ffc261016ac164c0e00602c0f6f4fda9] | committer: Petri Hintukainen
Fix lseek/off_t in Android
> http://git.videolan.org/gitweb.cgi/libudfread.git/?a=commit;h=9e1e9865ffc261016ac164c0e00602c0f6f4fda9
---
src/default_blockinput.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/default_blockinput.c b/src/default_blockinput.c
index 18061fa..7a3f6ba 100644
--- a/src/default_blockinput.c
+++ b/src/default_blockinput.c
@@ -41,6 +41,12 @@
#include <io.h>
#endif
+#ifdef __ANDROID__
+# undef lseek
+# define lseek lseek64
+# undef off_t
+# define off_t off64_t
+#endif
#ifdef _WIN32
static ssize_t pread(int fd, void *buf, size_t count, off_t offset)
More information about the libbluray-devel
mailing list