summaryrefslogtreecommitdiff
path: root/x11-plugins/wmDownload/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-25 09:05:36 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-25 09:05:36 +0100
commit070db046876f2e8d5f83cb7b380ae857d06e493a (patch)
tree81c82d9b296b94b64dd8aea6ad369ea43f40bc14 /x11-plugins/wmDownload/files
parent4bc145ba9c79d57abcafc9b97c72bd5addd3e833 (diff)
gentoo auto-resync : 25:05:2023 - 09:05:36
Diffstat (limited to 'x11-plugins/wmDownload/files')
-rw-r--r--x11-plugins/wmDownload/files/wmDownload-strtouq-musl.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/x11-plugins/wmDownload/files/wmDownload-strtouq-musl.patch b/x11-plugins/wmDownload/files/wmDownload-strtouq-musl.patch
new file mode 100644
index 000000000000..3a9a5d00b206
--- /dev/null
+++ b/x11-plugins/wmDownload/files/wmDownload-strtouq-musl.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/898922
+From: Brahmajit Das <brahmajit.xyz@gmail.com>
+Date: Sun, 14 May 2023 14:39:59 +0530
+Subject: [PATCH] Don't use strtouq while building on non-glibc system
+
+Bug: https://bugs.gentoo.org/898922
+Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
+--- a/wmDownload.c
++++ b/wmDownload.c
+@@ -205,7 +205,11 @@ void checknetstats ()
+ {
+ p = (char *)strtok (NULL, tokens);
+
++#ifdef __GLIBC__
+ bytes = strtouq(p, NULL, 0);
++#else
++ bytes = strtoul(p, NULL, 0);
++#endif
+
+ kbytes = (bytes == 0)?0:bytes/base;
+ bytes = bytes%base;
+--
+2.40.1
+