Line 0
Link Here
|
|
|
1 |
--- zcav_io.cpp.orig 2009-08-24 07:36:02.677798155 +0000 |
2 |
+++ zcav_io.cpp 2009-08-24 07:36:40.688614055 +0000 |
3 |
@@ -83,7 +83,6 @@ |
4 |
for(int loops = 0; !exiting && loops < max_loops; loops++) |
5 |
{ |
6 |
int i = 0; |
7 |
-#ifdef _LARGEFILE64_SOURCE |
8 |
if(start_offset) |
9 |
{ |
10 |
OFF_TYPE real_offset = OFF_TYPE(start_offset) * OFF_TYPE(m_block_size) * OFF_TYPE(1<<20); |
11 |
@@ -96,7 +95,6 @@ |
12 |
i = start_offset; |
13 |
} |
14 |
else |
15 |
-#endif |
16 |
if(lseek(m_fd, 0, SEEK_SET)) |
17 |
{ |
18 |
fprintf(stderr, "Can't lseek().\n"); |
19 |
@@ -224,14 +222,12 @@ |
20 |
// Read/write a block of data |
21 |
double ZcavRead::access_data(int skip) |
22 |
{ |
23 |
-#ifdef _LARGEFILE64_SOURCE |
24 |
if(skip) |
25 |
{ |
26 |
OFF_TYPE real_offset = OFF_TYPE(skip) * OFF_TYPE(m_block_size) * OFF_TYPE(1<<20); |
27 |
if(file_lseek(m_fd, real_offset, SEEK_CUR) == OFF_TYPE(-1)) |
28 |
return -1.0; |
29 |
} |
30 |
-#endif |
31 |
|
32 |
m_dur.start(); |
33 |
for(int i = 0; i < m_block_size; i+= m_chunk_size) |