aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/transmission-cli/files
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2012-06-06 23:51:22 +0800
committercrees <crees@FreeBSD.org>2012-06-06 23:51:22 +0800
commit5aa6ddf48a8f27961d5a62968ed7ee1c0bf6a54e (patch)
tree331422cfd16be8fdff298064b3a8c972183ef128 /net-p2p/transmission-cli/files
parentdebbff46ea03c0e14ef6ff46bff7dc25bf1cdb28 (diff)
downloadfreebsd-ports-gnome-5aa6ddf48a8f27961d5a62968ed7ee1c0bf6a54e.tar.gz
freebsd-ports-gnome-5aa6ddf48a8f27961d5a62968ed7ee1c0bf6a54e.tar.zst
freebsd-ports-gnome-5aa6ddf48a8f27961d5a62968ed7ee1c0bf6a54e.zip
posix-fadvise was added to FreeBSD on 04/November 2011 [1], which is picked
up by the configure script. However, the function is marked as available, but libtransmission/fdlimit.c has a conditional include on fcntl.h, which causes the compilation to fail. This patch removes the condition on fcntl.h inclusion, hopefully fixing the build. PR: ports/167195 Submitted by: Reviewed by: [1] http://svnweb.freebsd.org/base/head/sys/sys/fcntl.h?view=log#rev227070
Diffstat (limited to 'net-p2p/transmission-cli/files')
-rw-r--r--net-p2p/transmission-cli/files/patch-libtransmission-fdlimit.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-p2p/transmission-cli/files/patch-libtransmission-fdlimit.c b/net-p2p/transmission-cli/files/patch-libtransmission-fdlimit.c
new file mode 100644
index 000000000000..c3fedaff64b5
--- /dev/null
+++ b/net-p2p/transmission-cli/files/patch-libtransmission-fdlimit.c
@@ -0,0 +1,13 @@
+--- libtransmission/fdlimit.c.orig 2012-04-09 02:51:33.750482000 +0100
++++ libtransmission/fdlimit.c 2012-06-06 13:31:54.992362170 +0100
+@@ -21,9 +21,7 @@
+ #include <errno.h>
+ #include <inttypes.h>
+ #include <string.h>
+-#ifdef SYS_DARWIN
+- #include <fcntl.h>
+-#endif
++#include <fcntl.h>
+
+ #ifdef HAVE_FALLOCATE64
+ /* FIXME can't find the right #include voodoo to pick up the declaration.. */