mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
sparsefile: enable large file support on Android
https://bugzilla.gnome.org/show_bug.cgi?id=758980
This commit is contained in:
parent
ef431cd1e5
commit
3e34af224a
1 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,13 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __BIONIC__ /* Android */
|
||||||
|
#undef lseek
|
||||||
|
#define lseek lseek64
|
||||||
|
#undef off_t
|
||||||
|
#define off_t guint64
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_FSEEKO
|
#ifdef HAVE_FSEEKO
|
||||||
#define FSEEK_FILE(file,offset) (fseeko (file, (off_t) offset, SEEK_SET) != 0)
|
#define FSEEK_FILE(file,offset) (fseeko (file, (off_t) offset, SEEK_SET) != 0)
|
||||||
#elif defined (G_OS_UNIX) || defined (G_OS_WIN32)
|
#elif defined (G_OS_UNIX) || defined (G_OS_WIN32)
|
||||||
|
|
Loading…
Reference in a new issue