SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
devel/libffi/patches/patch-src_closures_c
Normal file
19
devel/libffi/patches/patch-src_closures_c
Normal file
|
@ -0,0 +1,19 @@
|
|||
Index: src/closures.c
|
||||
--- src/closures.c.orig
|
||||
+++ src/closures.c
|
||||
@@ -904,6 +904,7 @@ dlmmap (void *start, size_t length, int prot,
|
||||
return ptr;
|
||||
}
|
||||
|
||||
+#if 0
|
||||
/* -1 != execfd hints that we already decided to use dlmmap_locked
|
||||
last time. */
|
||||
if (execfd == -1 && is_mprotect_enabled ())
|
||||
@@ -932,6 +933,7 @@ dlmmap (void *start, size_t length, int prot,
|
||||
with ((prot & ~PROT_WRITE) | PROT_EXEC) and mremap with
|
||||
MREMAP_DUP and prot at this point. */
|
||||
}
|
||||
+#endif
|
||||
|
||||
pthread_mutex_lock (&open_temp_exec_file_mutex);
|
||||
ptr = dlmmap_locked (start, length, prot, flags, offset);
|
Loading…
Add table
Add a link
Reference in a new issue