You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
599 B

10 years ago
fallocate64() is already defined in <fcntl.h> for android-21
diff -u -r ../transmission-2.84/libtransmission/fdlimit.c ./libtransmission/fdlimit.c
--- ../transmission-2.84/libtransmission/fdlimit.c 2014-07-01 13:08:59.298910687 -0400
+++ ./libtransmission/fdlimit.c 2014-12-20 05:47:58.563577502 -0500
@@ -22,7 +22,7 @@
#include <fcntl.h>
#endif
-#ifdef HAVE_FALLOCATE64
+#if defined HAVE_FALLOCATE64 && !(defined __ANDROID__)
/* FIXME can't find the right #include voodoo to pick up the declaration.. */
extern int fallocate64 (int fd, int mode, uint64_t offset, uint64_t len);
#endif