PKGBUILDs/mariadb-connector-c/mingw-w64/0002-Fix-_SIZE_T_DEFINED-un...

26 lines
797 B
Diff

From 7cfcfdc3b258bbbe67e29997899c80c2c7bfe2bc Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sat, 17 Sep 2016 16:44:14 +0200
Subject: [PATCH 2/3] Fix _SIZE_T_DEFINED under mingw-w64
---
include/my_global.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/my_global.h b/include/my_global.h
index 176404c..1905544 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -450,7 +450,7 @@ typedef SOCKET_SIZE_TYPE size_socket;
#define NO_PISAM /* Not needed anymore */
#define NO_MISAM /* Not needed anymore */
#define NO_HASH /* Not needed anymore */
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__MINGW32__)
#define NO_DIR_LIBRARY /* Not standar dir-library */
#define USE_MY_STAT_STRUCT /* For my_lib */
#ifdef _MSC_VER
--
2.9.3