Skip to content

Commit

Permalink
Ports: Fix building libpuffy
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner authored and linusg committed May 1, 2021
1 parent 6cf59b6 commit 9b2dd0f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Ports/libpuffy/patches/llabs.patch
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 9b2dd0f

Please sign in to comment.