Changeset fb635e210354b1be0b04e2e1f941670036dae680
- Timestamp:
- 11/11/06 20:14:53
(2 years ago)
- Author:
- Damien Fouilleul <damienf@videolan.org>
- git-committer:
- Damien Fouilleul <damienf@videolan.org> 1163272493 +0000
- git-parent:
[04cf4f559b33aeb0af223a7ee5c6fdb2b701c045]
- git-author:
- Damien Fouilleul <damienf@videolan.org> 1163272493 +0000
- Message:
- access/file.c: fixed stat on win32, make sure the right stat structure is used, 'struct _stati64' on win32 and not 'struct stat'
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r378c8be |
rfb635e2 |
|
| 54 | 54 | /* fstat() support for large files on win32 */ |
|---|
| 55 | 55 | # define fstat(a,b) _fstati64(a,b) |
|---|
| | 56 | # define FILESTAT _stati64 |
|---|
| 56 | 57 | # ifdef lseek |
|---|
| 57 | 58 | # undef lseek |
|---|
| … | … | |
| 68 | 69 | # endif |
|---|
| 69 | 70 | # define lseek fseek |
|---|
| | 71 | #else |
|---|
| | 72 | # define FILESTAT stat |
|---|
| 70 | 73 | #endif |
|---|
| 71 | 74 | |
|---|
| … | … | |
| 167 | 170 | |
|---|
| 168 | 171 | #ifdef HAVE_SYS_STAT_H |
|---|
| 169 | | struct stat st; |
|---|
| | 172 | struct FILESTAT st; |
|---|
| 170 | 173 | |
|---|
| 171 | 174 | while (fd != -1) |
|---|
| … | … | |
| 300 | 303 | (p_sys->i_nb_reads % INPUT_FSTAT_NB_READS) == 0 ) |
|---|
| 301 | 304 | { |
|---|
| 302 | | struct stat st; |
|---|
| | 305 | struct FILESTAT st; |
|---|
| 303 | 306 | |
|---|
| 304 | 307 | if ((fstat (fd, &st) == 0) |
|---|