summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch')
-rw-r--r--app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch b/app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch
new file mode 100644
index 000000000000..a39a8a23ceeb
--- /dev/null
+++ b/app-crypt/onak/files/onak-0.5.0-musl-strtouq-fix.patch
@@ -0,0 +1,15 @@
+Bug: https://bugs.gentoo.org/894352
+--- a/onak.c
++++ b/onak.c
+@@ -337,7 +337,11 @@ int main(int argc, char *argv[])
+ }
+ isfp = true;
+ } else if (search != NULL) {
++#if defined(__GLIBC__)
+ keyid = strtouq(search, &end, 16);
++#else
++ keyid = strtoull(search, &end, 16);
++#endif
+ if (*search != 0 &&
+ end != NULL &&
+ *end == 0) {