ladybird/Ports/powdertoy/patches/0001-malloc.h-doesn-t-exist-on-Serenity-but-the-code-only.patch

24 lines
653 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: circl <circl.lastname@gmail.com>
Date: Sun, 20 Mar 2022 17:13:21 +0100
Subject: [PATCH] malloc.h doesn't exist on Serenity, but the code only checks
for macOS and BSDs
---
src/Update.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Update.cpp b/src/Update.cpp
index 50ef666..5996846 100644
--- a/src/Update.cpp
+++ b/src/Update.cpp
@@ -5,7 +5,7 @@
#ifndef WIN
#include <sys/param.h>
#endif
-#if !defined(MACOSX) && !defined(BSD)
+#if !defined(MACOSX) && !defined(BSD) && !defined(__serenity__)
#include <malloc.h>
#endif
#include <cstring>