1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 07:45:08 +00:00
serenity/Ports/zig/patches/0014-zlib-Fix-implicit-write-method-declaration-error.patch
sin-ack 752d9d7c03 Ports: Bump Zig version to 0.11.0-dev.4003+c6aa29b6f
This commit fixes the build for LLVM 16 now that the toolchain has been
updated, and updates us to the latest available Zig commit.

The main patch changes are making more symbols available (and exposing
them through std.c.serenity) and working around new Zig build
requirements.

Co-Authored-By: Andre Herbst <moormaster@gmx.net>
2023-07-17 22:52:08 +01:00

21 lines
579 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Andre Herbst <moormaster@gmx.net>
Date: Sat, 8 Jul 2023 14:17:19 +0200
Subject: [PATCH] zlib: Fix implicit write() method declaration error
---
zlib/gzguts.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/zlib/gzguts.h b/zlib/gzguts.h
index 57faf37165a3546c3d0a783457a51e7dedff49ae..3c700c2a908cf4f675299fb4769f905533945831 100644
--- a/zlib/gzguts.h
+++ b/zlib/gzguts.h
@@ -19,6 +19,7 @@
#endif
#include <stdio.h>
+#include <unistd.h>
#include "zlib.h"
#ifdef STDC
# include <string.h>