summary refs log tree commit diff stats
path: root/src/common/dcc.c
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2018-03-05 19:25:08 -0500
committerPatrick Griffis <tingping@tingping.se>2018-03-09 18:23:25 +0000
commite9b9ff9f38abc82c0a5002d5e58a5c226b698f82 (patch)
treea9fa9c40111985faae17348ce47293a048dd6bbb /src/common/dcc.c
parent9b8a7eaa0147c6a564c1d1401d57cc685461e320 (diff)
Various fixes for mingw
Diffstat (limited to 'src/common/dcc.c')
-rw-r--r--src/common/dcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/dcc.c b/src/common/dcc.c
index 954e6b91..e26a2916 100644
--- a/src/common/dcc.c
+++ b/src/common/dcc.c
@@ -59,8 +59,8 @@
 #include "hexchatc.h"
 
 /* Setting _FILE_OFFSET_BITS to 64 doesn't change lseek to use off64_t on Windows, so override lseek to the version that does */
-#ifdef WIN32
-#define lseek _lseeki64
+#if defined(WIN32) && (!defined(__MINGW32__) && !defined(__MINGW64__))
+	#define lseek _lseeki64
 #endif
 
 /* interval timer to detect timeouts */