From 070db046876f2e8d5f83cb7b380ae857d06e493a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 25 May 2023 09:05:36 +0100 Subject: gentoo auto-resync : 25:05:2023 - 09:05:36 --- .../wmDownload/files/wmDownload-strtouq-musl.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 x11-plugins/wmDownload/files/wmDownload-strtouq-musl.patch (limited to 'x11-plugins/wmDownload/files') 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 +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 +--- 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 + -- cgit v1.2.3