Advertisement
cyla

rtorrent-cygwin-fix.patch

Oct 21st, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.69 KB | None | 0 0
  1. --- a/src/utils/directory.cc
  2. +++ b/src/utils/directory.cc
  3. @@ -42,7 +42,7 @@
  4.  #include <rak/path.h>
  5.  #include <torrent/exceptions.h>
  6.  
  7. -#ifdef __sun__
  8. +#if defined(__sun__) || defined(__CYGWIN__)
  9.  #include <sys/stat.h>
  10.  #endif
  11.  
  12. @@ -73,7 +73,7 @@ Directory::update(int flags) {
  13.      return false;
  14.  
  15.    struct dirent* entry;
  16. -#ifdef __sun__
  17. +#if defined(__sun__) || defined(__CYGWIN__)
  18.    struct stat s;
  19.  #endif
  20.  
  21. @@ -83,7 +83,7 @@ Directory::update(int flags) {
  22.  
  23.      iterator itr = base_type::insert(end(), value_type());
  24.  
  25. -#ifdef __sun__
  26. +#if defined(__sun__) || defined(__CYGWIN__)
  27.      stat(entry->d_name, &s);
  28.      itr->d_fileno = entry->d_ino;
  29.      itr->d_reclen = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement