Ticket #1184 (new defect)
refactoring of utils::Directory relies on non-portable code
| Reported by: | anonymous | Owned by: | rakshasa |
|---|---|---|---|
| Priority: | normal | Component: | libtorrent |
| Version: | HEAD | Severity: | normal |
| Keywords: | Cc: |
Description
I'm just quoting from here , but the change in (i believe) [1022] introduced non-posix code that makes compiling on Solaris impossible. According to the posix standard, the only field you can rely on dirent having is d_name. Solaris, indeed, does not have this field, and apparently you're supposed to figure out if something is a directory or not by using stat().
I feel like a jerk for pointing it out, but there it is.
Change History
Note: See
TracTickets for help on using
tickets.
