mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 01:27:34 +00:00
Ports: Update cfunge's patches to use git patches
This commit is contained in:
parent
b321d2b563
commit
83aa5dcbf6
9 changed files with 117 additions and 50 deletions
25
Ports/cfunge/patches/0003-define-_POSIX_MAPPED_FILES.patch
Normal file
25
Ports/cfunge/patches/0003-define-_POSIX_MAPPED_FILES.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
From 2ef179368040355b7a99d3a55c9defdc162baa32 Mon Sep 17 00:00:00 2001
|
||||
From: Tobias Christiansen <tobyase@serenityos.org>
|
||||
Date: Thu, 24 Mar 2022 15:41:48 +0100
|
||||
Subject: [PATCH 3/4] define _POSIX_MAPPED_FILES
|
||||
|
||||
Serenity has a working mmap().
|
||||
---
|
||||
src/funge-space/funge-space.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/funge-space/funge-space.c b/src/funge-space/funge-space.c
|
||||
index 0b78647..dc1f830 100644
|
||||
--- a/src/funge-space/funge-space.c
|
||||
+++ b/src/funge-space/funge-space.c
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <sys/stat.h> /* fstat, open */
|
||||
#include <fcntl.h> /* open, posix_fallocate */
|
||||
|
||||
+#define _POSIX_MAPPED_FILES 1
|
||||
#if !defined(_POSIX_MAPPED_FILES) || (_POSIX_MAPPED_FILES < 1)
|
||||
# error "cfunge needs a working mmap(), which this system claims it lacks."
|
||||
#endif
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue