aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-07-06 07:31:55 +0800
committerJohn Marino <marino@FreeBSD.org>2014-07-06 07:31:55 +0800
commiteba991e5537b95d93c33d825bcef892574979174 (patch)
tree1d9e3cccc32beb0a15fb66ef075ba315ad944e3b /net-p2p
parentffcb2d79a05afd6d614365bc9f7fa200f9f3921c (diff)
downloadfreebsd-ports-gnome-eba991e5537b95d93c33d825bcef892574979174.tar.gz
freebsd-ports-gnome-eba991e5537b95d93c33d825bcef892574979174.tar.zst
freebsd-ports-gnome-eba991e5537b95d93c33d825bcef892574979174.zip
net-p2p/rtorrent: Bring in DragonFly support from dports
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/rtorrent/files/patch-src_utils_directory.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/net-p2p/rtorrent/files/patch-src_utils_directory.cc b/net-p2p/rtorrent/files/patch-src_utils_directory.cc
new file mode 100644
index 000000000000..0f0cc5c0bb52
--- /dev/null
+++ b/net-p2p/rtorrent/files/patch-src_utils_directory.cc
@@ -0,0 +1,13 @@
+--- src/utils/directory.cc.orig 2012-03-29 13:06:11.000000000 +0000
++++ src/utils/directory.cc
+@@ -88,6 +88,10 @@ Directory::update(int flags) {
+ itr->d_fileno = entry->d_ino;
+ itr->d_reclen = 0;
+ itr->d_type = s.st_mode;
++#elif defined(__DragonFly__)
++ itr->d_fileno = entry->d_fileno;
++ itr->d_reclen = _DIRENT_RECLEN(entry->d_namlen);
++ itr->d_type = entry->d_type;
+ #else
+ itr->d_fileno = entry->d_fileno;
+ itr->d_reclen = entry->d_reclen;