diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2010-03-18 21:11:21 -0300 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-03-19 13:07:35 -0700 |
commit | 325fea93604801c5f6abc498a2674018216ac1de (patch) | |
tree | 6d0617850bc400bb2c9c1e6b1bec3ebe68ae2575 /configure.ac | |
parent | eb1003ba32d4526ac3d7c456292798a873e3f750 (diff) |
Use VirtualAlloc() to allocate executable memory on Windows.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b6b8933..06713bd 100644 --- a/configure.ac +++ b/configure.ac @@ -85,9 +85,12 @@ then fi case "${host_os}" in - mingw*|pw32*|cygwin*) + nobody_is_using_this_currently) AC_DEFINE(HAVE_CODEMEM_MALLOC, 1, [Use malloc to allocate code for execution]) ;; + mingw*|pw32*|cygwin*) + AC_DEFINE(HAVE_CODEMEM_VIRTUALALLOC, 1, [Use VirtualAlloc to allocate code for execution]) + ;; linux*|darwin*|solaris*|netbsd*|freebsd*|openbsd*|kfreebsd*|gnu*) AC_DEFINE(HAVE_CODEMEM_MMAP, 1, [Use mmap to allocate code for execution]) ;; |