Changeset 7d1aef6308c529b9cf9dd57ac73ca85b7f585140
- Timestamp:
- 04/01/07 18:00:10
(2 years ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1167930010 +0000
- git-parent:
[f556b69004ce0978944d0f1ce024f04b9130b53a]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1167930010 +0000
- Message:
Win32 compile fix
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf556b69 |
r7d1aef6 |
|
| 365 | 365 | |
|---|
| 366 | 366 | struct stat_list_t stself; |
|---|
| | 367 | #ifndef WIN32 |
|---|
| 367 | 368 | int fd = dirfd (handle); |
|---|
| 368 | 369 | |
|---|
| … | … | |
| 376 | 377 | for (stat_list_t *stats = stparent; stats != NULL; stats = stats->parent) |
|---|
| 377 | 378 | { |
|---|
| 378 | | #ifndef WIN32 |
|---|
| 379 | 379 | if ((stself.st.st_ino == stats->st.st_ino) |
|---|
| 380 | 380 | && (stself.st.st_dev == stats->st.st_dev)) |
|---|
| … | … | |
| 385 | 385 | return VLC_SUCCESS; |
|---|
| 386 | 386 | } |
|---|
| | 387 | } |
|---|
| 387 | 388 | #else |
|---|
| 388 | 389 | /* Windows has st_dev (driver letter - 'A'), but it zeroes st_ino, |
|---|
| 389 | | * so that the test above will always incorrectly succeed. */ |
|---|
| 390 | | #endif |
|---|
| 391 | | } |
|---|
| | 390 | * so that the test above will always incorrectly succeed. |
|---|
| | 391 | * Besides, Windows does not have dirfd(). */ |
|---|
| | 392 | #endif |
|---|
| 392 | 393 | |
|---|
| 393 | 394 | stself.parent = stparent; |
|---|