Changeset 7d1aef6308c529b9cf9dd57ac73ca85b7f585140

Show
Ignore:
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
  • modules/access/directory.c

    rf556b69 r7d1aef6  
    365365 
    366366    struct stat_list_t stself; 
     367#ifndef WIN32 
    367368    int fd = dirfd (handle); 
    368369 
     
    376377    for (stat_list_t *stats = stparent; stats != NULL; stats = stats->parent) 
    377378    { 
    378 #ifndef WIN32 
    379379        if ((stself.st.st_ino == stats->st.st_ino) 
    380380         && (stself.st.st_dev == stats->st.st_dev)) 
     
    385385            return VLC_SUCCESS; 
    386386        } 
     387    } 
    387388#else 
    388389        /* 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 
    392393 
    393394    stself.parent = stparent;