diff --git a/srcpkgs/gnome-builder/patches/musl-wordsize.patch b/srcpkgs/gnome-builder/patches/musl-wordsize.patch new file mode 100644 index 00000000000..cd1129c0a5b --- /dev/null +++ b/srcpkgs/gnome-builder/patches/musl-wordsize.patch @@ -0,0 +1,38 @@ +--- src/plugins/sysprof/gbp-sysprof-plugin.c 2018-03-14 03:10:22.000000000 +0100 ++++ src/plugins/sysprof/gbp-sysprof-plugin.c 2018-04-10 15:20:46.416250960 +0200 +@@ -16,6 +16,10 @@ + * along with this program. If not, see . + */ + ++#if !defined(__GLIBC__) ++#include /* for __WORDSIZE */ ++#endif ++ + #include + #include + #include +--- src/plugins/sysprof/gbp-sysprof-perspective.c 2018-03-14 03:10:22.000000000 +0100 ++++ src/plugins/sysprof/gbp-sysprof-perspective.c 2018-04-10 15:12:49.793279369 +0200 +@@ -17,6 +17,9 @@ + */ + + #define G_LOG_DOMAIN "gbp-sysprof-perspective" ++#if !defined(__GLIBC__) ++#include /* for __WORDSIZE */ ++#endif + + #include + #include +--- src/plugins/sysprof/gbp-sysprof-workbench-addin.c 2018-03-14 03:10:22.000000000 +0100 ++++ src/plugins/sysprof/gbp-sysprof-workbench-addin.c 2018-04-10 15:19:28.473255605 +0200 +@@ -16,6 +16,10 @@ + * along with this program. If not, see . + */ + ++#if !defined(__GLIBC__) ++#include /* for __WORDSIZE */ ++#endif ++ + #include + #include + diff --git a/srcpkgs/gnome-builder/template b/srcpkgs/gnome-builder/template index 9b8fe5e33b9..9640fbe1ee4 100644 --- a/srcpkgs/gnome-builder/template +++ b/srcpkgs/gnome-builder/template @@ -19,12 +19,5 @@ checksum=71b7527a4297b5e4986754f5563cb9afc777bc8a890b90145c05ac93f2d6a9f8 case "$XBPS_TARGET_MACHINE" in *-musl) makedepends+=" libexecinfo-devel" LIBS+=" -lexecinfo" - case "$XBPS_TARGET_MACHINE" in - aarch64*|x86_64*) - CXXFLAGS+=" -D__WORDSIZE=64" - ;; - *) CXXFLAGS+=" -D__WORDSIZE=32" - ;; - esac ;; esac