termux-packages/packages/transmission/fdlimit.c.patch
Fredrik Fornwall 59f0d218a6 Initial push
2015-06-13 01:03:31 +02:00

15 lines
599 B
Diff

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