1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

net-p2p/rtorrent: Bring in DragonFly support from dports

This commit is contained in:
John Marino 2014-07-05 23:31:55 +00:00
parent ffcb2d79a0
commit eba991e553
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360844

View File

@ -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;