libg15render: add standard headers to fix build with GCC 14

This commit is contained in:
Raf Pauwels
2025-08-22 00:55:14 +02:00
committed by Peter Hoeg
parent 5d38f0d542
commit 3d315da358
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
diff --git a/pixel.c b/pixel.c
--- a/pixel.c
+++ b/pixel.c
@@ -19,6 +19,10 @@
#include <fcntl.h>
#include "libg15render.h"
+#include <math.h>
+#include <stdlib.h>
+#include <unistd.h>
+
void
swap (int *x, int *y)
{

View File

@@ -47,6 +47,10 @@ let
sha256 = "03yjb78j1fnr2fwklxy54sdljwi0imvp29m8kmwl9v0pdapka8yj";
};
patches = [
./libg15render-implicit-decls.patch
];
buildInputs = [ libg15 ];
enableParallelBuilding = true;