summaryrefslogtreecommitdiff
path: root/src/closures.c
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-12 08:53:06 -0400
committerAnthony Green <green@moxielogic.com>2022-09-12 08:53:06 -0400
commita1130f37712c03957c9b0adf316cd006fa92a60b (patch)
tree8569aebb6248f6c469de49776a5061f67e4e059b /src/closures.c
parent26cc9a6c73c80e8459c25da3718c91cf5a36cbd8 (diff)
downloadlibffi-a1130f37712c03957c9b0adf316cd006fa92a60b.tar.gz
Add static trampoline support for Cygwin
Diffstat (limited to 'src/closures.c')
-rw-r--r--src/closures.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/closures.c b/src/closures.c
index 6cbe2f0..e2bc651 100644
--- a/src/closures.c
+++ b/src/closures.c
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------
- closures.c - Copyright (c) 2019 Anthony Green
+ closures.c - Copyright (c) 2019, 2022 Anthony Green
Copyright (c) 2007, 2009, 2010 Red Hat, Inc.
Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc
Copyright (c) 2011 Plausible Labs Cooperative, Inc.
@@ -133,7 +133,7 @@ ffi_tramp_is_present (__attribute__((unused)) void *ptr)
# define FFI_MMAP_EXEC_WRIT 1
# define HAVE_MNTENT 1
# endif
-# if defined(_WIN32) || defined(__OS2__)
+# if defined(__CYGWIN__) || defined(_WIN32) || defined(__OS2__)
/* Windows systems may have Data Execution Protection (DEP) enabled,
which requires the use of VirtualMalloc/VirtualFree to alloc/free
executable memory. */