aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-09-18 14:48:16 +0000
committerYang Tse <yangsita@gmail.com>2009-09-18 14:48:16 +0000
commit61ea058d9f9e5c81ce0ebfafcf7a0df4874a80d3 (patch)
tree52bd2758577df42de1504cee1e49cd1d353db193 /lib/setup.h
parent0fdb77d643f3061cb748bfcf511ac65ae4005487 (diff)
fix compiler warning: comparison between signed and unsigned
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 43a322af5..f3ea36f8d 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -293,6 +293,7 @@
# define fstat(fdes,stp) _fstati64(fdes, stp)
# define stat(fname,stp) _stati64(fname, stp)
# define struct_stat struct _stati64
+# define LSEEK_ERROR (__int64)-1
#endif
/*
@@ -307,12 +308,17 @@
# define fstat(fdes,stp) _fstat(fdes, stp)
# define stat(fname,stp) _stat(fname, stp)
# define struct_stat struct _stat
+# define LSEEK_ERROR (long)-1
#endif
#ifndef struct_stat
# define struct_stat struct stat
#endif
+#ifndef LSEEK_ERROR
+# define LSEEK_ERROR (off_t)-1
+#endif
+
/*
* Default sizeof(off_t) in case it hasn't been defined in config file.
*/