On Cygwin use mmap instead of Windows native allocation functions, which are not fork-safe.
This commit is contained in:
parent
f5fc109fbd
commit
8f5f614615
|
@ -74,7 +74,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifdef OS_WINDOWS
|
#if defined(OS_WINDOWS) && !defined(OS_CYGWIN_NT)
|
||||||
#define ALLOC_WINDOWS
|
#define ALLOC_WINDOWS
|
||||||
#ifndef MEM_LARGE_PAGES
|
#ifndef MEM_LARGE_PAGES
|
||||||
#define MEM_LARGE_PAGES 0x20000000
|
#define MEM_LARGE_PAGES 0x20000000
|
||||||
|
@ -88,7 +88,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#ifndef OS_WINDOWS
|
#if !defined(OS_WINDOWS) || defined(OS_CYGWIN_NT)
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#ifndef NO_SYSV_IPC
|
#ifndef NO_SYSV_IPC
|
||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
|
|
Loading…
Reference in New Issue