don't needlessly include sys/mman.h

This commit is contained in:
dzaima 2022-06-12 22:29:35 +03:00
parent 5a32a00f46
commit baa4641a44
6 changed files with 8 additions and 3 deletions

View File

@ -6,6 +6,8 @@
#if MM==0
#include "opt/mm_malloc.h"
#undef ENABLE_GC
#define ENABLE_GC 0
#elif MM==1
#include "opt/mm_buddy.h"
#elif MM==2

View File

@ -1,4 +1,6 @@
#if !NO_MMAP
#include <sys/mman.h>
#endif
#include "gc.c"
#ifdef OBJ_COUNTER

View File

@ -1,5 +1,4 @@
#include "gc.h"
#include <sys/mman.h>
typedef struct EmptyValue EmptyValue;
struct EmptyValue { // needs set: mmInfo; type=t_empty; next; everything else can be garbage

View File

@ -1,4 +1,6 @@
#if !NO_MMAP
#include <sys/mman.h>
#endif
#include "gc.c"
#ifdef OBJ_COUNTER

View File

@ -1,4 +1,3 @@
#include <sys/mman.h>
#include <stdlib.h>
#include <malloc.h>
extern u64 mm_heapAlloc;

View File

@ -1,6 +1,7 @@
#pragma once
#if !NO_MMAP
#include <sys/mman.h>
#endif
#if (defined(__x86_64) || defined(__amd64__)) && (__APPLE__ || __MACH__ || __linux__ || __FreeBSD__ || __unix || __unix__) && defined(MAP_32BIT) && MM!=0
#ifndef JIT_START