From f9c5c47c0d292708a9cdd527a05030a8e464c62d Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sat, 11 Mar 2017 08:53:02 +0000 Subject: [PATCH] libiodbc: fix musl build (Gentoo patch) --- .../patches/musl-remove-wchar_t-check.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/libiodbc/patches/musl-remove-wchar_t-check.patch diff --git a/srcpkgs/libiodbc/patches/musl-remove-wchar_t-check.patch b/srcpkgs/libiodbc/patches/musl-remove-wchar_t-check.patch new file mode 100644 index 00000000000..ded98ddf0de --- /dev/null +++ b/srcpkgs/libiodbc/patches/musl-remove-wchar_t-check.patch @@ -0,0 +1,23 @@ +diff -Naur iODBC-3.52.8.orig/include/sqltypes.h iODBC-3.52.8/include/sqltypes.h +--- include/sqltypes.h 2012-03-27 05:15:02.000000000 -0400 ++++ include/sqltypes.h 2015-07-18 14:05:24.514478508 -0400 +@@ -399,19 +399,7 @@ + typedef unsigned short SQLWCHAR; + #else + # include +- +-# if defined(__cplusplus) || \ +- defined(_WCHAR_T) || \ +- defined(_WCHAR_T_DEFINED) || \ +- defined(_WCHAR_T_DEFINED_) || \ +- defined(_WCHAR_T_DECLARED) || \ +- defined(_BSD_WCHAR_T_DEFINED_) || \ +- defined(_BSD_WCHAR_T_) || \ +- defined(_BSD_CT_RUNE_T_) + typedef wchar_t SQLWCHAR; +-# else +-# error Please make sure your system supports the wchar_t type +-# endif + #endif /* WIN32 */ + +