void-packages/srcpkgs/chafa/patches/i686-musl.patch

14 lines
350 B
Diff

--- chafa/chafa-popcnt.c 2019-07-14 23:20:28.000000000 +0200
+++ chafa/chafa-popcnt.c 2019-11-02 17:59:57.075337429 +0100
@@ -23,6 +23,10 @@
#include "chafa/chafa.h"
#include "chafa/chafa-private.h"
+#if !defined(HAVE_POPCNT64_INTRINSICS) && !defined(__GLIBC__)
+typedef int __int32_t;
+#endif
+
gint
chafa_pop_count_u64_builtin (guint64 v)
{