summaryrefslogtreecommitdiff
path: root/evutil.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 /evutil.c
parentb738ee189f70063ed66f3375e8a5ade3f721d6a6 (diff)
downloadlibevent-6810908a5fd7d38a5aaec7cceae5a12b372c53c3.tar.gz
Fix some warnings found cross-compiling with mingw32
Diffstat (limited to 'evutil.c')
-rw-r--r--evutil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/evutil.c b/evutil.c
index 60a05bbe..6af2bcc8 100644
--- a/evutil.c
+++ b/evutil.c
@@ -89,8 +89,12 @@
#define open _open
#define read _read
#define close _close
+#ifndef fstat
#define fstat _fstati64
+#endif
+#ifndef stat
#define stat _stati64
+#endif
#define mode_t int
#endif