aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
parent33638d534700883b9563a69dc06f927e7c8375c8 (diff)
When not using large file support WIN32's lseek offset is a 'long'.
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.h b/lib/setup.h
index c1f7135e5..864896118 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -292,7 +292,7 @@
# 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