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:
parent
ffcb2d79a0
commit
eba991e553
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360844
13
net-p2p/rtorrent/files/patch-src_utils_directory.cc
Normal file
13
net-p2p/rtorrent/files/patch-src_utils_directory.cc
Normal 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;
|
Loading…
Reference in New Issue
Block a user