From 3e34af224a92636a86938ac514de3e68d95d445d Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Fri, 11 Dec 2015 14:07:27 -0800 Subject: [PATCH] sparsefile: enable large file support on Android https://bugzilla.gnome.org/show_bug.cgi?id=758980 --- plugins/elements/gstsparsefile.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/elements/gstsparsefile.c b/plugins/elements/gstsparsefile.c index b8a0577d81..080be4169a 100644 --- a/plugins/elements/gstsparsefile.c +++ b/plugins/elements/gstsparsefile.c @@ -36,6 +36,13 @@ #include #endif +#ifdef __BIONIC__ /* Android */ +#undef lseek +#define lseek lseek64 +#undef off_t +#define off_t guint64 +#endif + #ifdef HAVE_FSEEKO #define FSEEK_FILE(file,offset) (fseeko (file, (off_t) offset, SEEK_SET) != 0) #elif defined (G_OS_UNIX) || defined (G_OS_WIN32)