summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-11-01 18:05:27 -0400
committerNick Mathewson <nickm@torproject.org>2012-11-01 18:05:27 -0400
commit6810908a5fd7d38a5aaec7cceae5a12b372c53c3 (patch)
tree63a86615bab78f16e0bcdfaa05a38fd48b51d7d4 /buffer.c
parentb738ee189f70063ed66f3375e8a5ade3f721d6a6 (diff)
downloadlibevent-6810908a5fd7d38a5aaec7cceae5a12b372c53c3.tar.gz
Fix some warnings found cross-compiling with mingw32
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index 89311af5..a78ba26c 100644
--- a/buffer.c
+++ b/buffer.c
@@ -2894,10 +2894,16 @@ evbuffer_file_segment_new(
seg->file_offset = offset;
#ifdef _WIN32
+#ifndef lseek
#define lseek _lseeki64
+#endif
+#ifndef fstat
#define fstat _fstat
+#endif
+#ifndef stat
#define stat _stat
#endif
+#endif
if (length == -1) {
struct stat st;
if (fstat(fd, &st) < 0)