chafa: fix i686-musl build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-11-02 18:02:12 +01:00
parent 0b3b29a193
commit 5924a268b6
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8

View file

@ -0,0 +1,13 @@
--- 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)
{