summaryrefslogtreecommitdiff
path: root/Ports/cfunge/patches/posix-mapped-files.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/cfunge/patches/posix-mapped-files.patch')
-rw-r--r--Ports/cfunge/patches/posix-mapped-files.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/Ports/cfunge/patches/posix-mapped-files.patch b/Ports/cfunge/patches/posix-mapped-files.patch
new file mode 100644
index 0000000000..d771b31390
--- /dev/null
+++ b/Ports/cfunge/patches/posix-mapped-files.patch
@@ -0,0 +1,10 @@
+--- ../src/funge-space/funge-space.c
++++ ../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