diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-01 22:43:05 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-01 22:52:15 +0200 |
commit | 9b2dd0f3b4cc64074efdf5599dcda0b79ddc0831 (patch) | |
tree | 82d95a46a701106e1ff70b0f95638412ccb008ab | |
parent | 6cf59b6ae96aeeb8c0da957a07f913c4fa38467f (diff) | |
download | serenity-9b2dd0f3b4cc64074efdf5599dcda0b79ddc0831.zip |
Ports: Fix building libpuffy
-rw-r--r-- | Ports/libpuffy/patches/llabs.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Ports/libpuffy/patches/llabs.patch b/Ports/libpuffy/patches/llabs.patch new file mode 100644 index 0000000000..518fdaa0e4 --- /dev/null +++ b/Ports/libpuffy/patches/llabs.patch @@ -0,0 +1,17 @@ +diff -Naur libpuffy-1.0/fmt_scaled.c libpuffy-1.0.serenity/fmt_scaled.c +--- libpuffy-1.0/fmt_scaled.c 2020-03-14 21:04:34.000000000 +0100 ++++ libpuffy-1.0.serenity/fmt_scaled.c 2021-05-01 22:39:53.429380002 +0200 +@@ -207,11 +207,13 @@ + return -1; + } + ++#ifndef __serenity__ + static long long + llabs(long long j) + { + return (j < 0 ? -j : j); + } ++#endif + + /* Format the given "number" into human-readable form in "result". + * Result must point to an allocated buffer of length FMT_SCALED_STRSIZE. |