aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-07-06 07:31:55 +0800
committermarino <marino@FreeBSD.org>2014-07-06 07:31:55 +0800
commite7df28bd5994fec27392a566f6713d94b609cb06 (patch)
tree1d9e3cccc32beb0a15fb66ef075ba315ad944e3b /net-p2p
parentcb1ad80dcc569a8e5ef479ce1e4e595a4d7c7b88 (diff)
downloadfreebsd-ports-graphics-e7df28bd5994fec27392a566f6713d94b609cb06.tar.gz
freebsd-ports-graphics-e7df28bd5994fec27392a566f6713d94b609cb06.tar.zst
freebsd-ports-graphics-e7df28bd5994fec27392a566f6713d94b609cb06.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 00000000000..0f0cc5c0bb5
--- /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;