aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-28 22:41:35 +0000
committerYang Tse <yangsita@gmail.com>2008-08-28 22:41:35 +0000
commit9b7b2b347f2468222c5ef83eb0e737410456165a (patch)
tree05807c02adb5ec176d4f15f74fe393fd0d53982b /src
parent33638d534700883b9563a69dc06f927e7c8375c8 (diff)
When not using large file support WIN32's lseek offset is a 'long'.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 784d1750f..d26eecb2f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -232,7 +232,7 @@ typedef enum {
# include <io.h>
# include <sys/types.h>
# include <sys/stat.h>
-# define lseek(fdes,offset,whence) _lseek(fdes, offset, whence)
+# define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence)
# define fstat(fdes,stp) _fstat(fdes, stp)
# define stat(fname,stp) _stat(fname, stp)
# define struct_stat struct _stat