Skip to content

Commit

Permalink
virtuoso: fix *-musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
pullmoll committed Jan 26, 2020
1 parent 1743b86 commit fab82ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions srcpkgs/virtuoso/patches/musl-wchar_t.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- libsrc/odbcsdk/include/sqltypes.h 2013-12-09 13:28:32.000000000 +0100
+++ libsrc/odbcsdk/include/sqltypes.h 2020-01-27 00:16:39.381042209 +0100
@@ -393,6 +393,7 @@
defined(_WCHAR_T) || \
defined(_WCHAR_T_DEFINED) || \
defined(_WCHAR_T_DECLARED) || \
+ defined(__DEFINED_wchar_t) || \
defined(_BSD_WCHAR_T_DEFINED_)
typedef wchar_t SQLWCHAR;
# else
4 changes: 3 additions & 1 deletion srcpkgs/virtuoso/template
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ nocross="https://build.voidlinux.org/builders/armv6l_builder/builds/29187/steps/
disable_parallel_build=yes

case "$XBPS_TARGET_MACHINE" in
*-musl) broken="#include <execinfo.h>";;
*-musl) makedepends+=" libexecinfo-devel"
LDFLAGS+=" -lexecinfo"
;;
esac

do_configure() {
Expand Down

0 comments on commit fab82ea

Please sign in to comment.