summaryrefslogtreecommitdiffstats
path: root/community/tomahawk/musl-fixes.patch
blob: 78f72248d7ed5cd433cf504a19e58ca937b16cbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ./src/libtomahawk/accounts/ResolverAccount.cpp.orig
+++ ./src/libtomahawk/accounts/ResolverAccount.cpp
@@ -44,6 +44,17 @@
 #include <QFileInfo>
 #include <QDir>
 
+#include <limits.h>
+
+#ifndef __WORDSIZE
+# if ULONG_MAX == 0xffffffffffffffff
+#  define __WORDSIZE 64
+# elif ULONG_MAX == 0xffffffff
+#  define __WORDSIZE 32
+# endif /* ULONG_MAX */
+#endif /* __WORDSIZE */
+
+
 #define MANUALRESOLVERS_DIR "manualresolvers"
 
 using namespace Tomahawk;