diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-11-01 18:05:27 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-01 18:05:27 -0400 |
commit | 6810908a5fd7d38a5aaec7cceae5a12b372c53c3 (patch) | |
tree | 63a86615bab78f16e0bcdfaa05a38fd48b51d7d4 /buffer.c | |
parent | b738ee189f70063ed66f3375e8a5ade3f721d6a6 (diff) | |
download | libevent-6810908a5fd7d38a5aaec7cceae5a12b372c53c3.tar.gz |
Fix some warnings found cross-compiling with mingw32
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |