aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 84c9b1feb..0b74c8e57 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -319,6 +319,7 @@
# include <io.h>
# include <sys/types.h>
# include <sys/stat.h>
+# undef lseek
# define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence)
# define fstat(fdes,stp) _fstati64(fdes, stp)
# define stat(fname,stp) _stati64(fname, stp)
@@ -334,6 +335,7 @@
# include <io.h>
# include <sys/types.h>
# include <sys/stat.h>
+# undef lseek
# define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence)
# define fstat(fdes,stp) _fstat(fdes, stp)
# define stat(fname,stp) _stat(fname, stp)