Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/src/utils/directory.cc
- +++ b/src/utils/directory.cc
- @@ -42,7 +42,7 @@
- #include <rak/path.h>
- #include <torrent/exceptions.h>
- -#ifdef __sun__
- +#if defined(__sun__) || defined(__CYGWIN__)
- #include <sys/stat.h>
- #endif
- @@ -73,7 +73,7 @@ Directory::update(int flags) {
- return false;
- struct dirent* entry;
- -#ifdef __sun__
- +#if defined(__sun__) || defined(__CYGWIN__)
- struct stat s;
- #endif
- @@ -83,7 +83,7 @@ Directory::update(int flags) {
- iterator itr = base_type::insert(end(), value_type());
- -#ifdef __sun__
- +#if defined(__sun__) || defined(__CYGWIN__)
- stat(entry->d_name, &s);
- itr->d_fileno = entry->d_ino;
- itr->d_reclen = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement