sparsefile: enable large file support on Android

https://bugzilla.gnome.org/show_bug.cgi?id=758980
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-12-11 14:07:27 -08:00 committed by Sebastian Dröge
parent ef431cd1e5
commit 3e34af224a

View file

@ -36,6 +36,13 @@
#include <unistd.h>
#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)